fix props.visible issue
This commit is contained in:
parent
9fc21ef544
commit
9a7f847749
@ -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,
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user