feat: Pass User in to main menu and introduce avatar and dropdown

This commit is contained in:
Chuma McPhoy
2024-06-19 08:31:25 +02:00
committed by Michael Zetterberg
parent 88795b673d
commit 1326789683
5 changed files with 59 additions and 32 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import type {
CurrentHeaderLink,
TopMenuHeaderLink,
} from "@/types/requests/currentHeader"
import { User } from "@/types/user"
export type MainMenuProps = {
frontpageLinkText: string
@@ -15,6 +16,6 @@ export type MainMenuProps = {
languageSwitcher: React.ReactNode | null
myPagesMobileDropdown: React.ReactNode | null
bookingHref: string
isLoggedIn: boolean
user: User | null
lang: Lang
}