mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-15 12:31:21 +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;
|
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;
|
const { customBgColor, customColor, theme } = props;
|
||||||
return {
|
return {
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user