fix props.visible issue
This commit is contained in:
parent
9fc21ef544
commit
9a7f847749
@ -7,7 +7,7 @@ const FloatingPanel: FunctionComponent<{
|
||||
color: string;
|
||||
visible: boolean;
|
||||
}> = (props) => {
|
||||
if(!props.visible) return <></>
|
||||
if(props.visible === false) return <></>
|
||||
return (
|
||||
<div style={{
|
||||
backgroundColor: props.color,
|
||||
|
||||
@ -14,7 +14,7 @@ const UserStatus: FunctionComponent<{
|
||||
visible?: boolean,
|
||||
style?: React.CSSProperties
|
||||
}> = ({ context, user, layoutMode, visible, style }) => {
|
||||
if (!visible) return <></>;
|
||||
if (visible === false) return <></>;
|
||||
const textColorOnBoard = getColorByBrightness(
|
||||
context.themeManager.theme.boardColor,
|
||||
context.themeManager.theme.textColor,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user