components/header: rm memo from RSC (#141)

This commit is contained in:
Max Leiter 2023-03-28 00:37:10 -07:00 committed by GitHub
parent 68fc679864
commit 7887b42404
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(
() => (
<>
<HeaderButtons isAuthenticated={isAuthenticated} theme={theme} />
</>
),
[isAuthenticated, theme]
)
return (
<header className={styles.header}>
<div className={styles.tabs}>