Skip to content

Commit

Permalink
space: remove blue beta dot (#8511)
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed May 6, 2022
1 parent 8080c2c commit d75fbf2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/components/views/spaces/SpacePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,17 +219,10 @@ const CreateSpaceButton = ({
}

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);
openMenu();
};

let betaDot: JSX.Element;
if (!localStorage.getItem("mx_seenSpaces") && !SpaceStore.instance.spacePanelSpaces.length) {
betaDot = <div className="mx_BetaDot" />;
}

return <li
className={classNames("mx_SpaceItem mx_SpaceItem_new", {
"collapsed": isPanelCollapsed,
Expand All @@ -245,7 +238,6 @@ const CreateSpaceButton = ({
onClick={onNewClick}
isNarrow={isPanelCollapsed}
/>
{ betaDot }

{ contextMenu }
</li>;
Expand Down

0 comments on commit d75fbf2

Please sign in to comment.