chore: clean up typings

This commit is contained in:
Arvid Norlin
2024-04-23 15:39:23 +02:00
parent b12ccfafef
commit 1e8f23de38
8 changed files with 71 additions and 66 deletions

View File

@@ -1,16 +1,30 @@
import { Lang } from "@/constants/languages"
import { DynamicContent } from "@/types/requests/myPages/accountpage"
import {
AccountPageContentItem,
DynamicContentComponents,
} from "@/types/requests/myPages/accountpage"
import { User } from "@/types/user"
export type AccountPageContentProps = {
content: DynamicContent
lang: Lang
component: DynamicContentComponents
props: {
title?: string
subtitle?: string
link?: { href: string; text: string }
lang: Lang
}
user: User
}
export type AccountPageComponentProps = {
lang: Lang
title: string
title?: string
subtitle?: string
link?: { href: string; text: string }
}
export type ContentProps = {
user: User
lang: Lang
content: AccountPageContentItem[]
}

View File

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