refactor: rename import

This commit is contained in:
Matilda Landström
2024-05-27 16:48:54 +02:00
parent fb4fbb1cbd
commit 3e284d2c0b

View File

@@ -3,7 +3,7 @@ import { PageTypes } from "@/server/routers/contentstack/breadcrumbs/input"
import { auth } from "@/auth"
import { Blocks } from "@/components/Loyalty/Blocks"
import * as LoyaltySidebar from "@/components/Loyalty/Sidebar"
import SidebarLoyalty from "@/components/Loyalty/Sidebar"
import MaxWidth from "@/components/MaxWidth"
import Sidebar from "@/components/MyPages/Sidebar"
@@ -24,7 +24,7 @@ export default async function LoyaltyPage({ lang }: LangParams) {
{session ? (
<Sidebar lang={lang} />
) : loyaltyPage.sidebar.length ? (
<LoyaltySidebar.default blocks={loyaltyPage.sidebar} />
<SidebarLoyalty blocks={loyaltyPage.sidebar} />
) : null}
<MaxWidth className={styles.blocks} tag="main">