forked from sombochea/verdaccio-ui
refactor: move cascaded CSS from templates to JS objects
This commit is contained in:
@@ -3,10 +3,10 @@ import DialogTitle from '@material-ui/core/DialogTitle';
|
||||
import colors from '../../utils/styles/colors';
|
||||
import { fontSize } from '../../utils/styles/sizes';
|
||||
|
||||
export const Title = styled(DialogTitle)`
|
||||
&& {
|
||||
background-color: ${colors.primary};
|
||||
color: ${colors.white};
|
||||
font-size: ${fontSize.lg};
|
||||
}
|
||||
`;
|
||||
export const Title = styled(DialogTitle)({
|
||||
'&&': {
|
||||
backgroundColor: colors.primary,
|
||||
color: colors.white,
|
||||
fontSize: fontSize.lg,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user