From de632272ab88ba77d22bed61ee30b09b9290a081 Mon Sep 17 00:00:00 2001 From: Arvid Norlin Date: Tue, 23 Apr 2024 20:00:44 +0200 Subject: [PATCH] fix: add missing section element --- components/MyPages/AccountPage/Content.tsx | 27 ++++++++++++---------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/components/MyPages/AccountPage/Content.tsx b/components/MyPages/AccountPage/Content.tsx index eac63803e..b091a59ed 100644 --- a/components/MyPages/AccountPage/Content.tsx +++ b/components/MyPages/AccountPage/Content.tsx @@ -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 ( - +
+ +
) default: return null