Merged in fix/3697-prettier-configs (pull request #3396)

fix(SW-3691): Setup one prettier config for whole repo

* Setup prettierrc in root and remove other configs


Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
This commit is contained in:
Rasmus Langvad
2026-01-07 12:45:50 +00:00
parent 932413412b
commit d0546926a9
500 changed files with 18367 additions and 18419 deletions

View File

@@ -1,28 +1,28 @@
import {
MaterialIcon,
type MaterialIconSetIconProps,
} from '../Icons/MaterialIcon'
import { AlertTypeEnum } from '@scandic-hotels/common/constants/alert'
} from "../Icons/MaterialIcon"
import { AlertTypeEnum } from "@scandic-hotels/common/constants/alert"
import type { JSX } from 'react'
import type { JSX } from "react"
import type { AlertProps } from './alert'
import type { AlertProps } from "./alert"
interface IconByAlertProps {
alertType: AlertTypeEnum
variant?: AlertProps['variant']
variant?: AlertProps["variant"]
}
export function IconByAlertType({
alertType,
variant = 'inline',
variant = "inline",
...props
}: IconByAlertProps & MaterialIconSetIconProps): JSX.Element {
switch (alertType) {
case AlertTypeEnum.Alarm:
return (
<MaterialIcon
color={variant === 'inline' ? 'Icon/Inverted' : 'Icon/Feedback/Error'}
color={variant === "inline" ? "Icon/Inverted" : "Icon/Feedback/Error"}
isFilled
icon="error"
{...props}
@@ -33,7 +33,7 @@ export function IconByAlertType({
<MaterialIcon
icon="warning"
color={
variant === 'inline' ? 'Icon/Inverted' : 'Icon/Feedback/Warning'
variant === "inline" ? "Icon/Inverted" : "Icon/Feedback/Warning"
}
isFilled
{...props}
@@ -44,7 +44,7 @@ export function IconByAlertType({
<MaterialIcon
icon="check_circle"
color={
variant === 'inline' ? 'Icon/Inverted' : 'Icon/Feedback/Success'
variant === "inline" ? "Icon/Inverted" : "Icon/Feedback/Success"
}
isFilled
{...props}
@@ -55,7 +55,7 @@ export function IconByAlertType({
return (
<MaterialIcon
color={
variant === 'inline' ? 'Icon/Inverted' : 'Icon/Feedback/Information'
variant === "inline" ? "Icon/Inverted" : "Icon/Feedback/Information"
}
isFilled
icon="info"