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,14 +1,14 @@
|
||||
import { Rate, RateTermDetails } from '../types'
|
||||
import { Rate, RateTermDetails } from "../types"
|
||||
|
||||
import { cx } from 'class-variance-authority'
|
||||
import { Button as ButtonRAC } from 'react-aria-components'
|
||||
import { useIntl } from 'react-intl'
|
||||
import { IconButton } from '../../IconButton'
|
||||
import { MaterialIcon } from '../../Icons/MaterialIcon'
|
||||
import { Typography } from '../../Typography'
|
||||
import Modal from '../Modal'
|
||||
import styles from '../rate-card.module.css'
|
||||
import { variants } from '../variants'
|
||||
import { cx } from "class-variance-authority"
|
||||
import { Button as ButtonRAC } from "react-aria-components"
|
||||
import { useIntl } from "react-intl"
|
||||
import { IconButton } from "../../IconButton"
|
||||
import { MaterialIcon } from "../../Icons/MaterialIcon"
|
||||
import { Typography } from "../../Typography"
|
||||
import Modal from "../Modal"
|
||||
import styles from "../rate-card.module.css"
|
||||
import { variants } from "../variants"
|
||||
|
||||
interface CodeRateCardProps {
|
||||
id: string
|
||||
@@ -17,7 +17,7 @@ interface CodeRateCardProps {
|
||||
paymentTerm: string
|
||||
rate: Rate
|
||||
bannerText: string
|
||||
comparisonRate?: Omit<Rate, 'label'>
|
||||
comparisonRate?: Omit<Rate, "label">
|
||||
approximateRate?: Rate
|
||||
roomTypeCode: string
|
||||
isHighlightedRate?: boolean
|
||||
@@ -41,7 +41,7 @@ export default function CodeRateCard({
|
||||
rateTermDetails,
|
||||
}: CodeRateCardProps) {
|
||||
const classNames = variants({
|
||||
variant: 'Code',
|
||||
variant: "Code",
|
||||
})
|
||||
const intl = useIntl()
|
||||
|
||||
@@ -74,8 +74,8 @@ export default function CodeRateCard({
|
||||
size="sm"
|
||||
className={styles.triggerButton}
|
||||
aria-label={intl.formatMessage({
|
||||
id: 'selectRate.rateCard.openReservationPolicy',
|
||||
defaultMessage: 'Open reservation policy',
|
||||
id: "selectRate.rateCard.openReservationPolicy",
|
||||
defaultMessage: "Open reservation policy",
|
||||
})}
|
||||
iconName="info"
|
||||
/>
|
||||
@@ -113,7 +113,7 @@ export default function CodeRateCard({
|
||||
</Typography>
|
||||
<div className={styles.content} id={`${id}-details`}>
|
||||
<div
|
||||
className={`${styles.rateRow} ${isHighlightedRate ? styles.highlightedRate : ''}`}
|
||||
className={`${styles.rateRow} ${isHighlightedRate ? styles.highlightedRate : ""}`}
|
||||
>
|
||||
<Typography variant="Body/Supporting text (caption)/smBold">
|
||||
<p>{rate.label}</p>
|
||||
@@ -135,7 +135,7 @@ export default function CodeRateCard({
|
||||
<span className={styles.strikethrough}>
|
||||
{comparisonRate.price}
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
</span>{' '}
|
||||
</span>{" "}
|
||||
<Typography variant="Body/Supporting text (caption)/smBold">
|
||||
<span className={styles.strikethrough}>
|
||||
{comparisonRate.unit}
|
||||
|
||||
Reference in New Issue
Block a user