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,20 +1,20 @@
|
||||
'use client'
|
||||
"use client"
|
||||
|
||||
import { useIntl } from 'react-intl'
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import { Typography } from '../../Typography'
|
||||
import { Typography } from "../../Typography"
|
||||
|
||||
import styles from './parkingList.module.css'
|
||||
import styles from "./parkingList.module.css"
|
||||
|
||||
import type { Parking } from '../parkingInformationTypes'
|
||||
import type { Parking } from "../parkingInformationTypes"
|
||||
|
||||
type ParkingListProps = Pick<
|
||||
Parking,
|
||||
| 'address'
|
||||
| 'canMakeReservation'
|
||||
| 'distanceToHotel'
|
||||
| 'numberOfChargingSpaces'
|
||||
| 'numberOfParkingSpots'
|
||||
| "address"
|
||||
| "canMakeReservation"
|
||||
| "distanceToHotel"
|
||||
| "numberOfChargingSpaces"
|
||||
| "numberOfParkingSpots"
|
||||
>
|
||||
|
||||
export default function ParkingList({
|
||||
@@ -27,12 +27,12 @@ export default function ParkingList({
|
||||
const intl = useIntl()
|
||||
|
||||
const canMakeReservationYesMsg = intl.formatMessage({
|
||||
id: 'parkingInformation.reservedInAdvanceYes',
|
||||
defaultMessage: 'Parking can be reserved in advance: Yes',
|
||||
id: "parkingInformation.reservedInAdvanceYes",
|
||||
defaultMessage: "Parking can be reserved in advance: Yes",
|
||||
})
|
||||
const canMakeReservationNoMsg = intl.formatMessage({
|
||||
id: 'parkingInformation.reservedInAdvanceNo',
|
||||
defaultMessage: 'Parking can be reserved in advance: No',
|
||||
id: "parkingInformation.reservedInAdvanceNo",
|
||||
defaultMessage: "Parking can be reserved in advance: No",
|
||||
})
|
||||
|
||||
return (
|
||||
@@ -42,9 +42,9 @@ export default function ParkingList({
|
||||
<li className={styles.listItem}>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: 'parkingInformation.numberOfChargingPoints',
|
||||
id: "parkingInformation.numberOfChargingPoints",
|
||||
defaultMessage:
|
||||
'Number of charging points for electric cars: {number}',
|
||||
"Number of charging points for electric cars: {number}",
|
||||
},
|
||||
{ number: numberOfChargingSpaces }
|
||||
)}
|
||||
@@ -59,8 +59,8 @@ export default function ParkingList({
|
||||
<li className={styles.listItem}>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: 'parkingInformation.numberOfParkingSpots',
|
||||
defaultMessage: 'Number of parking spots: {number}',
|
||||
id: "parkingInformation.numberOfParkingSpots",
|
||||
defaultMessage: "Number of parking spots: {number}",
|
||||
},
|
||||
{ number: numberOfParkingSpots }
|
||||
)}
|
||||
@@ -70,8 +70,8 @@ export default function ParkingList({
|
||||
<li className={styles.listItem}>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: 'parkingInformation.distanceToHotel',
|
||||
defaultMessage: 'Distance to hotel: {distanceInM} m',
|
||||
id: "parkingInformation.distanceToHotel",
|
||||
defaultMessage: "Distance to hotel: {distanceInM} m",
|
||||
},
|
||||
{ distanceInM: distanceToHotel }
|
||||
)}
|
||||
@@ -81,8 +81,8 @@ export default function ParkingList({
|
||||
<li className={styles.listItem}>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: 'parkingInformation.address',
|
||||
defaultMessage: 'Address: {address}',
|
||||
id: "parkingInformation.address",
|
||||
defaultMessage: "Address: {address}",
|
||||
},
|
||||
{ address }
|
||||
)}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
gap: var(--Space-x1);
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
content: "";
|
||||
position: relative;
|
||||
top: 3px;
|
||||
display: inline-flex;
|
||||
@@ -17,7 +17,7 @@
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background-color: var(--Icon-Accent);
|
||||
mask-image: url('/_static/shared/icons/heart.svg');
|
||||
mask-image: url("/_static/shared/icons/heart.svg");
|
||||
mask-size: contain;
|
||||
mask-repeat: no-repeat;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user