From 7887b4240403ae1bed9af5d54eb50c1c084d0369 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Tue, 28 Mar 2023 00:37:10 -0700 Subject: [PATCH] components/header: rm memo from RSC (#141) --- src/app/components/header/index.tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/app/components/header/index.tsx b/src/app/components/header/index.tsx index 1a18cd2e..0242be1b 100644 --- a/src/app/components/header/index.tsx +++ b/src/app/components/header/index.tsx @@ -1,7 +1,6 @@ import styles from "./header.module.css" -import { getButtons, HeaderButtons } from "./buttons" +import { HeaderButtons } from "./buttons" import MobileHeader from "./mobile" -import { useMemo } from "react" export default function Header({ theme, @@ -10,15 +9,6 @@ export default function Header({ theme: string isAuthenticated: boolean }) { - const memoHeaderButtons = useMemo( - () => ( - <> - - - ), - [isAuthenticated, theme] - ) - return (