feat(SW-572): Added support for logged in and logged out variants of the top link inside the header
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user