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,16 +1,16 @@
|
||||
import {
|
||||
AdvancedMarker,
|
||||
AdvancedMarkerAnchorPoint,
|
||||
} from '@vis.gl/react-google-maps'
|
||||
import { useIntl } from 'react-intl'
|
||||
} from "@vis.gl/react-google-maps"
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import { Typography } from '../../../Typography'
|
||||
import { Typography } from "../../../Typography"
|
||||
|
||||
import { HotelMarkerByType } from '../../Markers/HotelMarkerByType'
|
||||
import { PoiMarker } from '../../Markers/PoiMarker'
|
||||
import { HotelMarkerByType } from "../../Markers/HotelMarkerByType"
|
||||
import { PoiMarker } from "../../Markers/PoiMarker"
|
||||
|
||||
import styles from './poiMapMarkers.module.css'
|
||||
import { MarkerInfo, PointOfInterest } from '../../types'
|
||||
import styles from "./poiMapMarkers.module.css"
|
||||
import { MarkerInfo, PointOfInterest } from "../../types"
|
||||
|
||||
export type PoiMapMarkersProps = {
|
||||
activePoi?: string | null
|
||||
@@ -50,15 +50,15 @@ export default function PoiMapMarkers({
|
||||
zIndex={activePoi === poi.id ? 2 : 0}
|
||||
onMouseEnter={() => onActivePoiChange?.(poi.id ?? null)}
|
||||
onMouseLeave={() => onActivePoiChange?.(null)}
|
||||
onClick={() => toggleActivePoi(poi.id ?? '')}
|
||||
onClick={() => toggleActivePoi(poi.id ?? "")}
|
||||
>
|
||||
<span
|
||||
className={`${styles.poi} ${activePoi === poi.id ? styles.active : ''}`}
|
||||
className={`${styles.poi} ${activePoi === poi.id ? styles.active : ""}`}
|
||||
>
|
||||
<PoiMarker
|
||||
group={poi.group}
|
||||
categoryName={poi.categoryName}
|
||||
size={activePoi === poi.id ? 'large' : 'small'}
|
||||
size={activePoi === poi.id ? "large" : "small"}
|
||||
/>
|
||||
<span className={styles.poiLabel}>
|
||||
<Typography variant="Body/Paragraph/mdRegular">
|
||||
@@ -71,8 +71,8 @@ export default function PoiMapMarkers({
|
||||
<span>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: 'common.distanceKm',
|
||||
defaultMessage: '{distanceInKm} km',
|
||||
id: "common.distanceKm",
|
||||
defaultMessage: "{distanceInKm} km",
|
||||
},
|
||||
{
|
||||
distanceInKm: poi.distance,
|
||||
|
||||
Reference in New Issue
Block a user