fix props.visible issue

This commit is contained in:
Halit Aksoy 2022-07-23 00:52:17 +03:00
parent 9fc21ef544
commit 9a7f847749
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,