fix: warning when passing a boolean to border property of a Card (#3275)

By default MainCard wrappers like NodeCardWrapper and CardWrapper add a a solid border of 1px, but if the `MainCard.border` prop is used (`false`) the border prop was wrongly set to a boolean instead of string
This commit is contained in:
Humberto Rodríguez A.
2024-09-27 12:07:39 +02:00
committed by GitHub
parent a02846077e
commit d3c5abf8be
@@ -30,10 +30,11 @@ const MainCard = forwardRef(function MainCard(
},
ref
) {
const otherProps = { ...others, border: others.border === false ? undefined : others.border }
return (
<Card
ref={ref}
{...others}
{...otherProps}
sx={{
background: 'transparent',
':hover': {