diff --git a/apps/scandic-web/components/Sidebar/JoinLoyalty/Contact/ContactRow/index.tsx b/apps/scandic-web/components/Sidebar/JoinLoyalty/Contact/ContactRow/index.tsx index 6890df1e9..90e7787ae 100644 --- a/apps/scandic-web/components/Sidebar/JoinLoyalty/Contact/ContactRow/index.tsx +++ b/apps/scandic-web/components/Sidebar/JoinLoyalty/Contact/ContactRow/index.tsx @@ -31,13 +31,9 @@ export default async function ContactRow({ contact }: ContactRowProps) { let Icon = null if (contact.contact_field.includes("email")) { - Icon = function MailIcon(props: MaterialIconSetIconProps) { - return - } + Icon = MailIcon } else if (contact.contact_field.includes("phone")) { - Icon = function PhoneIcone(props: MaterialIconSetIconProps) { - return - } + Icon = PhoneIcon } let openableLink = val @@ -66,3 +62,10 @@ export default async function ContactRow({ contact }: ContactRowProps) { ) } + +function PhoneIcon(props: MaterialIconSetIconProps) { + return +} +function MailIcon(props: MaterialIconSetIconProps) { + return +} diff --git a/packages/design-system/lib/components/Icons/Customised/Amenities&Facilities/Cooling.tsx b/packages/design-system/lib/components/Icons/Customised/Amenities&Facilities/Cooling.tsx index 8ca1e35f4..a860b88e1 100644 --- a/packages/design-system/lib/components/Icons/Customised/Amenities&Facilities/Cooling.tsx +++ b/packages/design-system/lib/components/Icons/Customised/Amenities&Facilities/Cooling.tsx @@ -2,12 +2,7 @@ import { iconVariants } from '../../variants' import type { IconProps } from '../../icon' -export default function CoolingIcon({ - className, - color, - size, - ...props -}: IconProps) { +export default function CoolingIcon({ className, color, ...props }: IconProps) { const classNames = iconVariants({ className, color }) return ( , 'color'>, + Omit, 'color'> { + width?: string | number + height?: string | number +} + +export interface LogoProps extends Omit, 'color'>, VariantProps { width?: string | number diff --git a/packages/design-system/lib/components/Icons/index.tsx b/packages/design-system/lib/components/Icons/index.tsx index 1f1e06e18..af6632116 100644 --- a/packages/design-system/lib/components/Icons/index.tsx +++ b/packages/design-system/lib/components/Icons/index.tsx @@ -74,7 +74,7 @@ export { default as Popcorn2Icon } from './Nucleo/Food/popcorn-2' export type { IconProps, - LogoAndIllustrationProps, + IllustrationProps as LogoAndIllustrationProps, NucleoIconProps, } from './icon' export type {