1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-18 17:16:00 +07:00

feat(style): added dark mode (#446)

This commit is contained in:
Priscila Oliveira
2020-03-31 08:44:59 +02:00
committed by GitHub
parent 91434cc814
commit cdad5cf70d
43 changed files with 378 additions and 154 deletions

View File

@@ -19,6 +19,6 @@ export const Wrapper = styled('div')<WrapperProps>(props => ({
}),
}));
export const Circular = styled(CircularProgress)<{ theme?: Theme }>(props => ({
color: props.theme && props.theme.palette.primary.main,
export const Circular = styled(CircularProgress)<{ theme?: Theme }>(({ theme }) => ({
color: theme?.palette.type === 'dark' ? theme?.palette.white : theme?.palette.primary.main,
}));