diff --git a/apps/scandic-web/components/TempDesignSystem/Alert/index.tsx b/apps/scandic-web/components/TempDesignSystem/Alert/index.tsx index fc67512b3..bb09f6f07 100644 --- a/apps/scandic-web/components/TempDesignSystem/Alert/index.tsx +++ b/apps/scandic-web/components/TempDesignSystem/Alert/index.tsx @@ -41,7 +41,11 @@ export default function Alert({
- +
diff --git a/apps/scandic-web/components/TempDesignSystem/Alert/utils.tsx b/apps/scandic-web/components/TempDesignSystem/Alert/utils.tsx index c58aa5f6c..bf96fb4f8 100644 --- a/apps/scandic-web/components/TempDesignSystem/Alert/utils.tsx +++ b/apps/scandic-web/components/TempDesignSystem/Alert/utils.tsx @@ -4,25 +4,35 @@ import { } from "@scandic-hotels/design-system/Icons/MaterialIcon" import { AlertTypeEnum } from "@/types/enums/alert" +import type { AlertProps } from "./alert" interface IconByAlertProps { alertType: AlertTypeEnum + variant?: AlertProps["variant"] } export function IconByAlertType({ alertType, + variant = "inline", ...props }: IconByAlertProps & MaterialIconSetIconProps): JSX.Element { switch (alertType) { case AlertTypeEnum.Alarm: return ( - + ) case AlertTypeEnum.Warning: return ( @@ -30,7 +40,14 @@ export function IconByAlertType({ case AlertTypeEnum.Info: default: return ( - + ) } }