mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 13:38:49 +08:00
fix: text button should forward prop
This commit is contained in:
@@ -87,6 +87,7 @@ export const StyledTextButton = styled('button', {
|
|||||||
'hoverBackground',
|
'hoverBackground',
|
||||||
'hoverColor',
|
'hoverColor',
|
||||||
'hoverStyle',
|
'hoverStyle',
|
||||||
|
'bold',
|
||||||
].includes(prop);
|
].includes(prop);
|
||||||
},
|
},
|
||||||
})<
|
})<
|
||||||
@@ -141,9 +142,13 @@ export const StyledTextButton = styled('button', {
|
|||||||
|
|
||||||
export const StyledButton = styled('button', {
|
export const StyledButton = styled('button', {
|
||||||
shouldForwardProp: prop => {
|
shouldForwardProp: prop => {
|
||||||
return !['hoverBackground', 'hoverColor', 'hoverStyle', 'type'].includes(
|
return ![
|
||||||
prop
|
'hoverBackground',
|
||||||
);
|
'hoverColor',
|
||||||
|
'hoverStyle',
|
||||||
|
'type',
|
||||||
|
'bold',
|
||||||
|
].includes(prop);
|
||||||
},
|
},
|
||||||
})<
|
})<
|
||||||
Pick<
|
Pick<
|
||||||
|
|||||||
Reference in New Issue
Block a user