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,17 +1,17 @@
|
||||
'use client'
|
||||
"use client"
|
||||
|
||||
import { useIntl } from 'react-intl'
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import ButtonLink from '../ButtonLink'
|
||||
import { Divider } from '../Divider'
|
||||
import { MaterialIcon } from '../Icons/MaterialIcon'
|
||||
import { Typography } from '../Typography'
|
||||
import ParkingList from './ParkingList'
|
||||
import ParkingPrices from './ParkingPrices'
|
||||
import ButtonLink from "../ButtonLink"
|
||||
import { Divider } from "../Divider"
|
||||
import { MaterialIcon } from "../Icons/MaterialIcon"
|
||||
import { Typography } from "../Typography"
|
||||
import ParkingList from "./ParkingList"
|
||||
import ParkingPrices from "./ParkingPrices"
|
||||
|
||||
import styles from './parkingInformation.module.css'
|
||||
import styles from "./parkingInformation.module.css"
|
||||
|
||||
import type { Parking } from './parkingInformationTypes'
|
||||
import type { Parking } from "./parkingInformationTypes"
|
||||
|
||||
type ParkingInformationProps = {
|
||||
parking: Parking
|
||||
@@ -23,7 +23,7 @@ export default function ParkingInformation({
|
||||
showExternalParkingButton = true,
|
||||
}: ParkingInformationProps) {
|
||||
const intl = useIntl()
|
||||
const title = `${parking.type}${parking.name ? ` (${parking.name})` : ''}`
|
||||
const title = `${parking.type}${parking.name ? ` (${parking.name})` : ""}`
|
||||
|
||||
return (
|
||||
<div className={styles.parkingInformation}>
|
||||
@@ -43,8 +43,8 @@ export default function ParkingInformation({
|
||||
<Typography variant="Body/Paragraph/mdBold">
|
||||
<h5 className={styles.heading}>
|
||||
{intl.formatMessage({
|
||||
id: 'parkingInformation.prices',
|
||||
defaultMessage: 'Prices',
|
||||
id: "parkingInformation.prices",
|
||||
defaultMessage: "Prices",
|
||||
})}
|
||||
</h5>
|
||||
</Typography>
|
||||
@@ -52,8 +52,8 @@ export default function ParkingInformation({
|
||||
<Typography variant="Title/Overline/sm">
|
||||
<h6 className={styles.priceHeading}>
|
||||
{intl.formatMessage({
|
||||
id: 'parkingInformation.weekdayPrices',
|
||||
defaultMessage: 'Weekday prices',
|
||||
id: "parkingInformation.weekdayPrices",
|
||||
defaultMessage: "Weekday prices",
|
||||
})}
|
||||
</h6>
|
||||
</Typography>
|
||||
@@ -70,8 +70,8 @@ export default function ParkingInformation({
|
||||
<Typography variant="Title/Overline/sm">
|
||||
<h6 className={styles.priceHeading}>
|
||||
{intl.formatMessage({
|
||||
id: 'parkingInformation.weekendPrices',
|
||||
defaultMessage: 'Weekend prices',
|
||||
id: "parkingInformation.weekendPrices",
|
||||
defaultMessage: "Weekend prices",
|
||||
})}
|
||||
</h6>
|
||||
</Typography>
|
||||
@@ -88,8 +88,8 @@ export default function ParkingInformation({
|
||||
{parking.externalParkingUrl && showExternalParkingButton && (
|
||||
<ButtonLink size="md" href={parking.externalParkingUrl} target="_blank">
|
||||
{intl.formatMessage({
|
||||
id: 'parkingInformation.bookParking',
|
||||
defaultMessage: 'Book parking',
|
||||
id: "parkingInformation.bookParking",
|
||||
defaultMessage: "Book parking",
|
||||
})}
|
||||
<MaterialIcon icon="open_in_new" color="CurrentColor" />
|
||||
</ButtonLink>
|
||||
|
||||
Reference in New Issue
Block a user