diff --git a/src/components/menu/Menu.tsx b/src/components/menu/Menu.tsx index 9031616..25d0854 100644 --- a/src/components/menu/Menu.tsx +++ b/src/components/menu/Menu.tsx @@ -68,7 +68,7 @@ type Props = { toggleMenuState: React.MouseEventHandler | undefined } -export function Menu({ menuState, toggleMenuState }: Props) { +function Menu({ menuState, toggleMenuState }: Props) { const menuStateMemo = useMemo(() => menuState, [menuState]); return ( @@ -99,3 +99,5 @@ export function Menu({ menuState, toggleMenuState }: Props) { ) } + +export default Menu; diff --git a/src/components/navigation/BottomNavBar.tsx b/src/components/navigation/BottomNavBar.tsx index b5cec37..fbf74ef 100644 --- a/src/components/navigation/BottomNavBar.tsx +++ b/src/components/navigation/BottomNavBar.tsx @@ -83,4 +83,4 @@ function BottomNavBar({ }: Props) { ) } -export default BottomNavBar \ No newline at end of file +export default React.memo(BottomNavBar) \ No newline at end of file diff --git a/src/components/topbar/TopBar.tsx b/src/components/topbar/TopBar.tsx index 609b189..2360167 100644 --- a/src/components/topbar/TopBar.tsx +++ b/src/components/topbar/TopBar.tsx @@ -19,7 +19,7 @@ type Props = { function TopBar({ profileDropState, toggleProfileDropState, menuState, toggleMenuState, searchModalState, toggleSearchModalState, nightModeState, toggleNightModeState }: Props) { return (
-
+