Merged in feat/LOY-261-Remove-Sidebar-From-MyPages (pull request #2380)
Feat/LOY-261 Remove Sidebar From MyPages * feat(LOY-261): remove sidebar from my pages * refactor(LOY-261): move SASLevelUpgradeCheck to my-pages layout and remove unused code * chore(LOY-261): remove console logs * fix(LOY-261): remove sidebar and center content in Loyalty Pages when logged in * fix(LOY-261): better class naming for content width Approved-by: Christian Andolf Approved-by: Erik Tiekstra
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
import { Suspense } from "react"
|
||||
|
||||
import MyPagesSidebar from "@/components/MyPages/Sidebar"
|
||||
import { isLoggedInUser } from "@/utils/isLoggedInUser"
|
||||
|
||||
import SidebarNavigationSkeleton from "../MyPages/Sidebar/SidebarNavigationSkeleton"
|
||||
|
||||
export default async function MyPagesNavigation() {
|
||||
const isLoggedIn = await isLoggedInUser()
|
||||
if (!isLoggedIn) {
|
||||
return null
|
||||
}
|
||||
return (
|
||||
<Suspense fallback={<SidebarNavigationSkeleton />}>
|
||||
<MyPagesSidebar />
|
||||
</Suspense>
|
||||
)
|
||||
}
|
||||
@@ -8,7 +8,6 @@ import ShortcutsList from "../Blocks/ShortcutsList"
|
||||
import Card from "../TempDesignSystem/Card"
|
||||
import TeaserCard from "../TempDesignSystem/TeaserCard"
|
||||
import JoinLoyaltyContact from "./JoinLoyalty"
|
||||
import MyPagesNavigation from "./MyPagesNavigation"
|
||||
|
||||
import styles from "./sidebar.module.css"
|
||||
|
||||
@@ -29,8 +28,6 @@ export default function Sidebar({ blocks }: SidebarProps) {
|
||||
)
|
||||
case SidebarEnums.blocks.DynamicContent:
|
||||
switch (block.dynamic_content.component) {
|
||||
case DynamicContentEnum.Sidebar.components.my_pages_navigation:
|
||||
return <MyPagesNavigation key={`${block.typename}-${idx}`} />
|
||||
case DynamicContentEnum.Sidebar.components
|
||||
.employee_benefits_auth_card:
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user