feat: add initial RTE rendering to AccountPage
This commit is contained in:
@@ -2,6 +2,7 @@ import { AllRequestResponse } from "../utils/all"
|
||||
import type { Typename } from "../utils/typename"
|
||||
import type { Edges } from "../utils/edges"
|
||||
import { PageLink } from "../utils/pageLink"
|
||||
import { RTEDocument } from "@/types/rte/node"
|
||||
|
||||
export enum DynamicContentComponents {
|
||||
membership_overview = "membership_overview",
|
||||
@@ -15,6 +16,7 @@ export enum DynamicContentComponents {
|
||||
export enum ContentEntries {
|
||||
AccountPageContentDynamicContent = "AccountPageContentDynamicContent",
|
||||
AccountPageContentShortcuts = "AccountPageContentShortcuts",
|
||||
AccountPageContentTextContent = "AccountPageContentTextContent",
|
||||
}
|
||||
|
||||
export type Shortcut = {
|
||||
@@ -43,9 +45,21 @@ export type AccountPageContentShortcuts = Typename<
|
||||
ContentEntries.AccountPageContentShortcuts
|
||||
>
|
||||
|
||||
export type AccountPageContentTextContent = Typename<
|
||||
{
|
||||
text_content: {
|
||||
content: {
|
||||
json: RTEDocument
|
||||
}
|
||||
}
|
||||
},
|
||||
ContentEntries.AccountPageContentTextContent
|
||||
>
|
||||
|
||||
export type AccountPageContentItem =
|
||||
| AccountPageDynamicContent
|
||||
| AccountPageContentShortcuts
|
||||
| AccountPageContentTextContent
|
||||
|
||||
export type AccountPage = {
|
||||
url: string
|
||||
|
||||
Reference in New Issue
Block a user