mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 11:00:55 +03:00
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:
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': {
|
||||
|
||||
Reference in New Issue
Block a user