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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user