refactor: unify theme (#1303)

This commit is contained in:
Himself65
2023-03-04 01:36:20 -06:00
committed by GitHub
parent fe0d78b2d6
commit 4e9f0c97a1
43 changed files with 779 additions and 543 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ export const StyledIconButton = styled('button', {
'hoverColor',
'hoverStyle',
'darker',
].includes(prop);
].includes(prop as string);
},
})<{
width: number;
@@ -90,7 +90,7 @@ export const StyledTextButton = styled('button', {
'hoverColor',
'hoverStyle',
'bold',
].includes(prop);
].includes(prop as string);
},
})<
Pick<
@@ -153,7 +153,7 @@ export const StyledButton = styled('button', {
'type',
'bold',
'noBorder',
].includes(prop);
].includes(prop as string);
},
})<
Pick<
+3 -2
View File
@@ -1,4 +1,5 @@
import { AffineTheme } from '../../styles';
import { Theme } from '@mui/material';
import {
ButtonProps,
SIZE_DEFAULT,
@@ -38,7 +39,7 @@ export const getSize = (
};
export const getButtonColors = (
theme: AffineTheme,
theme: Theme,
type: ButtonProps['type'],
disabled: boolean,
extend?: {