chore: organize types
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import { Lang } from "@/constants/languages"
|
||||
import { AccountPageContentItem } from "@/server/routers/contentstack/accountPage/output"
|
||||
|
||||
import {
|
||||
AccountPageContentItem,
|
||||
DynamicContentComponents,
|
||||
} from "@/types/requests/myPages/accountpage"
|
||||
import { DynamicContentComponents } from "@/types/components/myPages/myPage/enums"
|
||||
|
||||
export type AccountPageContentProps = {
|
||||
component: DynamicContentComponents
|
||||
|
||||
14
types/components/myPages/myPage/enums.ts
Normal file
14
types/components/myPages/myPage/enums.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export enum DynamicContentComponents {
|
||||
membership_overview = "membership_overview",
|
||||
soonest_stays = "soonest_stays",
|
||||
previous_stays = "previous_stays",
|
||||
upcoming_stays = "upcoming_stays",
|
||||
current_benefits = "current_benefits",
|
||||
next_benefits = "next_benefits",
|
||||
}
|
||||
|
||||
export enum ContentEntries {
|
||||
AccountPageContentDynamicContent = "AccountPageContentDynamicContent",
|
||||
AccountPageContentShortcuts = "AccountPageContentShortcuts",
|
||||
AccountPageContentTextContent = "AccountPageContentTextContent",
|
||||
}
|
||||
Reference in New Issue
Block a user