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 { renderOptions } from "@/components/JsonToHtml/renderOptions"
|
||||
import CurrentBenefitsBlock from "@/components/MyPages/Blocks/Benefits/CurrentLevel"
|
||||
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 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 {
|
||||
ContentEntries,
|
||||
DynamicContentComponents,
|
||||
} from "@/types/requests/myPages/accountpage"
|
||||
import {
|
||||
AccountPageContentProps,
|
||||
ContentProps,
|
||||
} from "@/types/components/myPages/myPage/accountPage"
|
||||
import {
|
||||
ContentEntries,
|
||||
DynamicContentComponents,
|
||||
} from "@/types/requests/myPages/accountpage"
|
||||
|
||||
function DynamicComponent({ user, component, props }: AccountPageContentProps) {
|
||||
switch (component) {
|
||||
@@ -77,11 +78,13 @@ export default function Content({ user, lang, content }: ContentProps) {
|
||||
)
|
||||
case ContentEntries.AccountPageContentTextContent:
|
||||
return (
|
||||
<JsonToHtml
|
||||
embeds={[]}
|
||||
nodes={item.text_content.content.json.children}
|
||||
renderOptions={renderOptions}
|
||||
/>
|
||||
<section>
|
||||
<JsonToHtml
|
||||
embeds={[]}
|
||||
nodes={item.text_content.content.json.children}
|
||||
renderOptions={renderOptions}
|
||||
/>
|
||||
</section>
|
||||
)
|
||||
default:
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user