chore: clean up typings
This commit is contained in:
@@ -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[]
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { User } from "@/types/user"
|
||||
|
||||
export type OverviewProps = {
|
||||
title: string
|
||||
title?: string
|
||||
user: User
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user