From f884383c3c482db49dd6290490c1469dd2657f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Thu, 30 May 2024 15:59:28 +0200 Subject: [PATCH] fix: remove session and sidebar --- components/ContentType/LoyaltyPage.tsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/components/ContentType/LoyaltyPage.tsx b/components/ContentType/LoyaltyPage.tsx index 81a80b536..b334df14d 100644 --- a/components/ContentType/LoyaltyPage.tsx +++ b/components/ContentType/LoyaltyPage.tsx @@ -1,10 +1,8 @@ import { serverClient } from "@/lib/trpc/server" -import { auth } from "@/auth" import { Blocks } from "@/components/Loyalty/Blocks" -import SidebarLoyalty from "@/components/Loyalty/Sidebar" +import Sidebar from "@/components/Loyalty/Sidebar" import MaxWidth from "@/components/MaxWidth" -import Sidebar from "@/components/MyPages/Sidebar" import Breadcrumbs from "../MyPages/Breadcrumbs" @@ -14,16 +12,13 @@ import { LangParams } from "@/types/params" export default async function LoyaltyPage({ lang }: LangParams) { const loyaltyPage = await serverClient().contentstack.loyaltyPage.get() - const session = await auth() return ( <>
- {session ? ( - - ) : loyaltyPage.sidebar.length ? ( - + {loyaltyPage.sidebar.length ? ( + ) : null}