feat: add initial RTE rendering to AccountPage
This commit is contained in:
@@ -6,13 +6,15 @@ import {
|
||||
DynamicContent,
|
||||
DynamicContentComponents,
|
||||
} from "@/types/requests/myPages/accountpage"
|
||||
import { User } from "@/types/user"
|
||||
|
||||
import CurrentBenefitsBlock from "@/components/MyPages/Blocks/Benefits/CurrentLevel"
|
||||
import JsonToHtml from "@/components/JsonToHtml"
|
||||
import NextLevelBenefitsBlock from "@/components/MyPages/Blocks/Benefits/NextLevel"
|
||||
import Overview from "@/components/MyPages/Blocks/Overview"
|
||||
import Shortcuts from "@/components/MyPages/Blocks/Shortcuts"
|
||||
import UpcomingStays from "@/components/MyPages/Blocks/Stays/Upcoming"
|
||||
import { User } from "@/types/user"
|
||||
import { renderOptions } from "@/components/JsonToHtml/renderOptions"
|
||||
|
||||
function DynamicComponent({
|
||||
user,
|
||||
@@ -93,6 +95,15 @@ export default function Content({
|
||||
title={item.title}
|
||||
/>
|
||||
)
|
||||
case ContentEntries.AccountPageContentTextContent:
|
||||
console.log({ item })
|
||||
return (
|
||||
<JsonToHtml
|
||||
embeds={[]}
|
||||
nodes={item.text_content.content.json.children}
|
||||
renderOptions={renderOptions}
|
||||
/>
|
||||
)
|
||||
default:
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user