parent
bf7e786c03
commit
f8b3fb6787
3 changed files with 45 additions and 16 deletions
@ -0,0 +1,25 @@ |
||||
import { Button, ButtonProps, styled } from '@mui/material'; |
||||
|
||||
import { BLACK, GREY, TEXT } from '../../lib/consts/DEFAULT_THEME'; |
||||
|
||||
const StyledButton = styled(Button)({ |
||||
backgroundColor: TEXT, |
||||
color: BLACK, |
||||
textTransform: 'none', |
||||
|
||||
'&:hover': { |
||||
backgroundColor: GREY, |
||||
}, |
||||
}); |
||||
|
||||
const StyledContainedButton = ({ |
||||
children, |
||||
onClick, |
||||
type, |
||||
}: ButtonProps): JSX.Element => ( |
||||
<StyledButton {...{ onClick, type }} variant="contained"> |
||||
{children} |
||||
</StyledButton> |
||||
); |
||||
|
||||
export default StyledContainedButton; |
Loading…
Reference in new issue