-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
import { Box } from '@mui/material'; | ||
import DepositEthButton from './DepositEthButton'; | ||
import WithdrawEthButton from './WithdrawEthButton'; | ||
|
||
const Container = ({ children }) => { | ||
return ( | ||
<Box | ||
sx={{ | ||
display: 'inline-flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
backgroundColor: '#D9D9D9', | ||
borderRadius: '20px', | ||
padding: '30px', | ||
gap: '40px', | ||
'& > *': { | ||
// Shift up to compensate for the the shadow on the buttons | ||
transform: 'translateY(-2px)', | ||
}, | ||
}} | ||
> | ||
{children} | ||
</Box> | ||
); | ||
}; | ||
|
||
const ButtonContainer = () => { | ||
return ( | ||
<Container> | ||
<DepositEthButton /> | ||
<WithdrawEthButton /> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default ButtonContainer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters