refactor(web): remove typescript
This commit is contained in:
12
packages/web/src/components/ConditionalIconButton/style.js
Normal file
12
packages/web/src/components/ConditionalIconButton/style.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { styled } from '@mui/material/styles';
|
||||
import MuiIconButton, { iconButtonClasses } from '@mui/material/IconButton';
|
||||
export const IconButton = styled(MuiIconButton)`
|
||||
&.${iconButtonClasses.colorPrimary}:not(.${iconButtonClasses.disabled}) {
|
||||
background: ${({ theme }) => theme.palette.primary.main};
|
||||
color: ${({ theme }) => theme.palette.primary.contrastText};
|
||||
|
||||
&:hover {
|
||||
background: ${({ theme }) => theme.palette.primary.dark};
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user