fix: text button should forward prop

This commit is contained in:
alt0
2022-12-22 17:10:27 +08:00
parent c102352d07
commit c9055befd1
+8 -3
View File
@@ -87,6 +87,7 @@ export const StyledTextButton = styled('button', {
'hoverBackground',
'hoverColor',
'hoverStyle',
'bold',
].includes(prop);
},
})<
@@ -141,9 +142,13 @@ export const StyledTextButton = styled('button', {
export const StyledButton = styled('button', {
shouldForwardProp: prop => {
return !['hoverBackground', 'hoverColor', 'hoverStyle', 'type'].includes(
prop
);
return ![
'hoverBackground',
'hoverColor',
'hoverStyle',
'type',
'bold',
].includes(prop);
},
})<
Pick<