mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 15:16:28 +08:00
refactor: unify theme (#1303)
This commit is contained in:
@@ -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<
|
||||
|
||||
@@ -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?: {
|
||||
|
||||
Reference in New Issue
Block a user