Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoskolodny committed Nov 5, 2024
1 parent 530e714 commit b4dfb6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/navigation-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ type MainNavigationBarProps = {
type MainNavigationBarMenuStatus = 'opening' | 'opened' | 'closing' | 'closed';
type MainNavigationBarMenuAction = 'open' | 'finishOpen' | 'close' | 'finishClose';

const transitions: Record<
const mainNavigationDesktopMenuTranstions: Record<
MainNavigationBarMenuStatus,
Partial<Record<MainNavigationBarMenuAction, MainNavigationBarMenuStatus>>
> = {
Expand All @@ -271,7 +271,7 @@ const transitions: Record<
};

const menuReducer = (state: MainNavigationBarMenuStatus, action: MainNavigationBarMenuAction) => {
return transitions[state][action] || state;
return mainNavigationDesktopMenuTranstions[state][action] || state;
};

type MainNavigationBarDesktopMenuState = {
Expand Down

0 comments on commit b4dfb6c

Please sign in to comment.