mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-14 20:11:22 +00:00
Avoid passing non-DOM native props
This commit is contained in:
parent
8f3b5393ff
commit
4cecd00da0
@ -138,7 +138,10 @@ interface CustomButtonProps {
|
||||
customColor?: string;
|
||||
}
|
||||
|
||||
export const CustomButtonAccept = styled(Box)<CustomButtonProps>((props) => {
|
||||
export const CustomButtonAccept = styled(Box, {
|
||||
shouldForwardProp: (prop) =>
|
||||
prop !== 'customBgColor' && prop !== 'customColor',
|
||||
})<CustomButtonProps>((props) => {
|
||||
const { customBgColor, customColor, theme } = props;
|
||||
return {
|
||||
alignItems: 'center',
|
||||
|
Loading…
x
Reference in New Issue
Block a user