fix: add missing section element
This commit is contained in:
@@ -1,21 +1,22 @@
|
|||||||
import CurrentBenefitsBlock from "@/components/MyPages/Blocks/Benefits/CurrentLevel"
|
|
||||||
import JsonToHtml from "@/components/JsonToHtml"
|
import JsonToHtml from "@/components/JsonToHtml"
|
||||||
|
import { renderOptions } from "@/components/JsonToHtml/renderOptions"
|
||||||
|
import CurrentBenefitsBlock from "@/components/MyPages/Blocks/Benefits/CurrentLevel"
|
||||||
import NextLevelBenefitsBlock from "@/components/MyPages/Blocks/Benefits/NextLevel"
|
import NextLevelBenefitsBlock from "@/components/MyPages/Blocks/Benefits/NextLevel"
|
||||||
import Overview from "@/components/MyPages/Blocks/Overview"
|
import Overview from "@/components/MyPages/Blocks/Overview"
|
||||||
import Shortcuts from "@/components/MyPages/Blocks/Shortcuts"
|
import Shortcuts from "@/components/MyPages/Blocks/Shortcuts"
|
||||||
import UpcomingStays from "@/components/MyPages/Blocks/Stays/Upcoming"
|
|
||||||
import SoonestStays from "@/components/MyPages/Blocks/Stays/Soonest"
|
import SoonestStays from "@/components/MyPages/Blocks/Stays/Soonest"
|
||||||
import { renderOptions } from "@/components/JsonToHtml/renderOptions"
|
import UpcomingStays from "@/components/MyPages/Blocks/Stays/Upcoming"
|
||||||
|
|
||||||
import PreviousStays from "../Blocks/Stays/Previous"
|
import PreviousStays from "../Blocks/Stays/Previous"
|
||||||
|
|
||||||
import {
|
|
||||||
ContentEntries,
|
|
||||||
DynamicContentComponents,
|
|
||||||
} from "@/types/requests/myPages/accountpage"
|
|
||||||
import {
|
import {
|
||||||
AccountPageContentProps,
|
AccountPageContentProps,
|
||||||
ContentProps,
|
ContentProps,
|
||||||
} from "@/types/components/myPages/myPage/accountPage"
|
} from "@/types/components/myPages/myPage/accountPage"
|
||||||
|
import {
|
||||||
|
ContentEntries,
|
||||||
|
DynamicContentComponents,
|
||||||
|
} from "@/types/requests/myPages/accountpage"
|
||||||
|
|
||||||
function DynamicComponent({ user, component, props }: AccountPageContentProps) {
|
function DynamicComponent({ user, component, props }: AccountPageContentProps) {
|
||||||
switch (component) {
|
switch (component) {
|
||||||
@@ -77,11 +78,13 @@ export default function Content({ user, lang, content }: ContentProps) {
|
|||||||
)
|
)
|
||||||
case ContentEntries.AccountPageContentTextContent:
|
case ContentEntries.AccountPageContentTextContent:
|
||||||
return (
|
return (
|
||||||
<JsonToHtml
|
<section>
|
||||||
embeds={[]}
|
<JsonToHtml
|
||||||
nodes={item.text_content.content.json.children}
|
embeds={[]}
|
||||||
renderOptions={renderOptions}
|
nodes={item.text_content.content.json.children}
|
||||||
/>
|
renderOptions={renderOptions}
|
||||||
|
/>
|
||||||
|
</section>
|
||||||
)
|
)
|
||||||
default:
|
default:
|
||||||
return null
|
return null
|
||||||
|
|||||||
Reference in New Issue
Block a user