fix: move user fetch

This commit is contained in:
Arvid Norlin
2024-04-25 14:35:48 +02:00
parent 840a20c4c1
commit 2ddcbff009
6 changed files with 12 additions and 14 deletions

View File

@@ -1,9 +1,9 @@
import { Lang } from "@/constants/languages"
import {
AccountPageContentItem,
DynamicContentComponents,
} from "@/types/requests/myPages/accountpage"
import { User } from "@/types/user"
export type AccountPageContentProps = {
component: DynamicContentComponents
@@ -13,7 +13,6 @@ export type AccountPageContentProps = {
link?: { href: string; text: string }
lang: Lang
}
user: User
}
export type AccountPageComponentProps = {
@@ -24,7 +23,6 @@ export type AccountPageComponentProps = {
}
export type ContentProps = {
user: User
lang: Lang
content: AccountPageContentItem[]
}

View File

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