Separate Client Portal & Dashboard

This commit is contained in:
2022-05-23 10:38:16 +07:00
parent f2e84e6244
commit 89bb57f357
569 changed files with 60252 additions and 280 deletions

View File

@@ -0,0 +1,51 @@
import { Theme } from '@mui/material/styles';
// ----------------------------------------------------------------------
export default function ButtonGroup(theme: Theme) {
const styleContained = (
color: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error'
) => ({
props: { variant: 'contained', color },
style: { boxShadow: theme.customShadows[color] }
});
return {
MuiButtonGroup: {
variants: [
{
props: { variant: 'contained', color: 'inherit' },
style: { boxShadow: theme.customShadows.z8 }
},
styleContained('primary'),
styleContained('secondary'),
styleContained('info'),
styleContained('success'),
styleContained('warning'),
styleContained('error'),
{
props: { disabled: true },
style: {
boxShadow: 'none',
'& .MuiButtonGroup-grouped.Mui-disabled': {
color: theme.palette.action.disabled,
borderColor: `${theme.palette.action.disabledBackground} !important`,
'&.MuiButton-contained': {
backgroundColor: theme.palette.action.disabledBackground
}
}
}
}
],
styleOverrides: {
root: {
'&:hover': {
boxShadow: 'none'
}
}
}
}
};
}