Skip to content

Commit

Permalink
JS-6354: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3orblade committed Jan 31, 2025
1 parent 2e41225 commit c20b775
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/ts/component/sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const Sidebar = observer(class Sidebar extends React.Component<{}, State> {
};

render() {
const { showVault } = S.Common;
const page = this.state.page || 'widget';
const cmd = keyboard.cmdSymbol();
const Component = Components[page];
Expand Down Expand Up @@ -98,13 +99,8 @@ const Sidebar = observer(class Sidebar extends React.Component<{}, State> {
const node = $(this.node);
const vault = $(S.Common.getRef('vault').node);

if (showVault) {
node.addClass('withVault');
vault.removeClass('isHidden');
} else {
node.removeClass('withVault');
vault.addClass('isHidden');
};
node.toggleClass('withVault', showVault);
vault.toggleClass('isHidden', !showVault);
};

setActive (id: string): void {
Expand Down

0 comments on commit c20b775

Please sign in to comment.