mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +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
|
ref
|
||||||
) {
|
) {
|
||||||
|
const otherProps = { ...others, border: others.border === false ? undefined : others.border }
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
ref={ref}
|
ref={ref}
|
||||||
{...others}
|
{...otherProps}
|
||||||
sx={{
|
sx={{
|
||||||
background: 'transparent',
|
background: 'transparent',
|
||||||
':hover': {
|
':hover': {
|
||||||
|
|||||||
Reference in New Issue
Block a user