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; color: string;
visible: boolean; visible: boolean;
}> = (props) => { }> = (props) => {
if(!props.visible) return <></> if(props.visible === false) return <></>
return ( return (
<div style={{ <div style={{
backgroundColor: props.color, backgroundColor: props.color,

View File

@ -14,7 +14,7 @@ const UserStatus: FunctionComponent<{
visible?: boolean, visible?: boolean,
style?: React.CSSProperties style?: React.CSSProperties
}> = ({ context, user, layoutMode, visible, style }) => { }> = ({ context, user, layoutMode, visible, style }) => {
if (!visible) return <></>; if (visible === false) return <></>;
const textColorOnBoard = getColorByBrightness( const textColorOnBoard = getColorByBrightness(
context.themeManager.theme.boardColor, context.themeManager.theme.boardColor,
context.themeManager.theme.textColor, context.themeManager.theme.textColor,