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:
Chuma Mcphoy (We Ahead)
2025-06-26 14:25:17 +00:00
parent 133f7b3d75
commit 6965effcc2
13 changed files with 38 additions and 258 deletions

View File

@@ -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>
)
}

View File

@@ -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 (