Skip to content

Commit

Permalink
refactor: 변수명 구체적으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
feb-dain committed Oct 23, 2023
1 parent cefa26f commit 22ab973
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ export const useNavigationBar = () => {
const [navigationBarPanel, setNavigationBarPanel] = useExternalState(navigationBarPanelStore);

const toggleBasePanel = (basePanel: ReactElement) => {
const isAlreadyOpen = navigationBarPanel.basePanel?.key === basePanel.key;
const isBasePanelAlreadyOpen = navigationBarPanel.basePanel?.key === basePanel.key;

setNavigationBarPanel((prev) => ({
...prev,
basePanel: isAlreadyOpen ? null : basePanel,
basePanel: isBasePanelAlreadyOpen ? null : basePanel,
}));
};

Expand Down

0 comments on commit 22ab973

Please sign in to comment.