Merged in feat/LOY-201-Employee-benefits-auth-card-sidebar (pull request #1891)

Feat(LOY-201): Employee benefits auth card sidebar

* feat(LOY-201): WIP - add EmployeeBenefitsAuthCard component to Sidebar and update dynamic content enum

* feat(LOY-201): reorganize EmployeeBenefitsAuthCard

* chore: remove debug console logs from DynamicContent handling


Approved-by: Christian Andolf
This commit is contained in:
Chuma Mcphoy (We Ahead)
2025-04-29 09:56:56 +00:00
parent af2a3f42c8
commit d2e99d2c45
5 changed files with 58 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import JsonToHtml from "@/components/JsonToHtml"
import ShortcutsList from "../Blocks/ShortcutsList"
import Card from "../TempDesignSystem/Card"
import TeaserCard from "../TempDesignSystem/TeaserCard"
import EmployeeBenefitsAuthCard from "./EmployeeBenefits/AuthCard"
import JoinLoyaltyContact from "./JoinLoyalty"
import MyPagesNavigation from "./MyPagesNavigation"
@@ -30,6 +31,11 @@ export default function Sidebar({ blocks }: SidebarProps) {
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 (
<EmployeeBenefitsAuthCard key={`${block.typename}-${idx}`} />
)
default:
return null
}