space: remove blue beta dot (#8511)
parent
8080c2cc04
commit
d75fbf27e0
|
@ -219,17 +219,10 @@ const CreateSpaceButton = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
const onNewClick = menuDisplayed ? closeMenu : () => {
|
const onNewClick = menuDisplayed ? closeMenu : () => {
|
||||||
// persist that the user has interacted with this, use it to dismiss the beta dot
|
|
||||||
localStorage.setItem("mx_seenSpaces", "1");
|
|
||||||
if (!isPanelCollapsed) setPanelCollapsed(true);
|
if (!isPanelCollapsed) setPanelCollapsed(true);
|
||||||
openMenu();
|
openMenu();
|
||||||
};
|
};
|
||||||
|
|
||||||
let betaDot: JSX.Element;
|
|
||||||
if (!localStorage.getItem("mx_seenSpaces") && !SpaceStore.instance.spacePanelSpaces.length) {
|
|
||||||
betaDot = <div className="mx_BetaDot" />;
|
|
||||||
}
|
|
||||||
|
|
||||||
return <li
|
return <li
|
||||||
className={classNames("mx_SpaceItem mx_SpaceItem_new", {
|
className={classNames("mx_SpaceItem mx_SpaceItem_new", {
|
||||||
"collapsed": isPanelCollapsed,
|
"collapsed": isPanelCollapsed,
|
||||||
|
@ -245,7 +238,6 @@ const CreateSpaceButton = ({
|
||||||
onClick={onNewClick}
|
onClick={onNewClick}
|
||||||
isNarrow={isPanelCollapsed}
|
isNarrow={isPanelCollapsed}
|
||||||
/>
|
/>
|
||||||
{ betaDot }
|
|
||||||
|
|
||||||
{ contextMenu }
|
{ contextMenu }
|
||||||
</li>;
|
</li>;
|
||||||
|
|
Loading…
Reference in New Issue