feat(SW-572): Added support for logged in and logged out variants of the top link inside the header

This commit is contained in:
Erik Tiekstra
2024-11-11 14:03:08 +01:00
parent cc9f0509a1
commit d732138696
17 changed files with 215 additions and 68 deletions

View File

@@ -77,6 +77,7 @@ import {
PhoneIcon,
PlusCircleIcon,
PlusIcon,
PriceTagIcon,
RestaurantIcon,
RoomServiceIcon,
SaunaIcon,
@@ -101,7 +102,9 @@ import {
import { IconName, IconProps } from "@/types/components/icon"
export function getIconByIconName(icon?: IconName): FC<IconProps> | null {
export function getIconByIconName(
icon: IconName | null = null
): FC<IconProps> | null {
switch (icon) {
case IconName.Accesories:
return AccesoriesIcon
@@ -253,6 +256,8 @@ export function getIconByIconName(icon?: IconName): FC<IconProps> | null {
return PlusIcon
case IconName.PlusCircle:
return PlusCircleIcon
case IconName.PriceTag:
return PriceTagIcon
case IconName.Restaurant:
return RestaurantIcon
case IconName.RoomService: