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:
@@ -1,13 +1,13 @@
|
||||
import { useIntl } from 'react-intl'
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import IconChip from '../IconChip'
|
||||
import { MaterialIcon } from '../Icons/MaterialIcon'
|
||||
import FilledDiscountIcon from '../Icons/Nucleo/Benefits/FilledDiscount'
|
||||
import { Typography } from '../Typography'
|
||||
import IconChip from "../IconChip"
|
||||
import { MaterialIcon } from "../Icons/MaterialIcon"
|
||||
import FilledDiscountIcon from "../Icons/Nucleo/Benefits/FilledDiscount"
|
||||
import { Typography } from "../Typography"
|
||||
|
||||
import { cx } from 'class-variance-authority'
|
||||
import { IconButton } from '../IconButton'
|
||||
import styles from './bookingCodeChip.module.css'
|
||||
import { cx } from "class-variance-authority"
|
||||
import { IconButton } from "../IconButton"
|
||||
import styles from "./bookingCodeChip.module.css"
|
||||
|
||||
type BaseBookingCodeChipProps = {
|
||||
alignCenter?: boolean
|
||||
@@ -47,11 +47,11 @@ export function BookingCodeChip({
|
||||
return null
|
||||
}
|
||||
|
||||
const color = isCampaignRate ? 'green' : 'blue'
|
||||
const color = isCampaignRate ? "green" : "blue"
|
||||
|
||||
const iconColor = isCampaignRate
|
||||
? 'Icon/Feedback/Success'
|
||||
: 'Icon/Feedback/Information'
|
||||
? "Icon/Feedback/Success"
|
||||
: "Icon/Feedback/Information"
|
||||
|
||||
const isUnavailableRate = isCampaignRate
|
||||
? isCampaignUnavailable
|
||||
@@ -59,12 +59,12 @@ export function BookingCodeChip({
|
||||
|
||||
const label = isCampaignRate
|
||||
? intl.formatMessage({
|
||||
id: 'booking.campaign',
|
||||
defaultMessage: 'Campaign',
|
||||
id: "booking.campaign",
|
||||
defaultMessage: "Campaign",
|
||||
})
|
||||
: intl.formatMessage({
|
||||
id: 'booking.bookingCode',
|
||||
defaultMessage: 'Booking code',
|
||||
id: "booking.bookingCode",
|
||||
defaultMessage: "Booking code",
|
||||
})
|
||||
|
||||
const icon = isCampaignRate ? (
|
||||
@@ -107,8 +107,8 @@ export function BookingCodeChip({
|
||||
className={styles.removeButton}
|
||||
onPress={onClose}
|
||||
aria-label={intl.formatMessage({
|
||||
id: 'booking.removeBookingCode',
|
||||
defaultMessage: 'Remove booking code',
|
||||
id: "booking.removeBookingCode",
|
||||
defaultMessage: "Remove booking code",
|
||||
})}
|
||||
iconName="close"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user