fix: add nullable values for account page

This commit is contained in:
Christel Westerberg
2024-05-14 10:27:32 +02:00
parent ed052dbfa4
commit b054fc2597
6 changed files with 18 additions and 16 deletions

View File

@@ -6,8 +6,8 @@ import { DynamicContentComponents } from "@/types/components/myPages/myPage/enum
export type AccountPageContentProps = {
component: DynamicContentComponents
props: {
title?: string
subtitle?: string
title: string | null
subtitle: string | null
link?: { href: string; text: string }
lang: Lang
}
@@ -15,8 +15,8 @@ export type AccountPageContentProps = {
export type AccountPageComponentProps = {
lang: Lang
title?: string
subtitle?: string
title: string | null
subtitle: string | null
link?: { href: string; text: string }
}

View File

@@ -1,5 +1,5 @@
import type { User } from "@/types/user"
export type OverviewProps = {
title?: string
title: string | null
}

View File

@@ -1,5 +1,5 @@
export type HeaderProps = {
title?: string
subtitle?: string
title: string | null
subtitle: string | null
link?: { href: string; text: string }
}