update theme to exclude styling from loading button

This commit is contained in:
Alex Holliday
2024-11-27 13:54:12 +08:00
parent 2c6b1d07f4
commit bf9199a2b7

View File

@@ -81,7 +81,13 @@ const baseTheme = (palette) => ({
},
},
{
props: (props) => props.variant === "contained" && props.disabled,
props: (props) => {
return (
props.variant === "contained" &&
props.disabled &&
props.classes.loadingIndicator === undefined // Do not apply to loading button
);
},
style: {
backgroundColor: `${theme.palette.secondary.main} !important`,
color: `${theme.palette.secondary.contrastText} !important`,
@@ -101,6 +107,7 @@ const baseTheme = (palette) => ({
}),
},
},
MuiIconButton: {
styleOverrides: {
root: ({ theme }) => ({