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,18 +1,18 @@
|
||||
'use client'
|
||||
"use client"
|
||||
|
||||
import { useEffect } from 'react'
|
||||
import { Dialog, Modal, ModalOverlay } from 'react-aria-components'
|
||||
import { useIntl } from 'react-intl'
|
||||
import { useEffect } from "react"
|
||||
import { Dialog, Modal, ModalOverlay } from "react-aria-components"
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import usePopStateHandler from '@scandic-hotels/common/hooks/usePopStateHandler'
|
||||
import usePopStateHandler from "@scandic-hotels/common/hooks/usePopStateHandler"
|
||||
|
||||
import { IconButton } from '../IconButton'
|
||||
import { Typography } from '../Typography'
|
||||
import { IconButton } from "../IconButton"
|
||||
import { Typography } from "../Typography"
|
||||
|
||||
import SidePeekSEO from './SidePeekSEO'
|
||||
import SidePeekSEO from "./SidePeekSEO"
|
||||
|
||||
import { KeepBodyVisible } from './KeepBodyVisible'
|
||||
import styles from './sidePeek.module.css'
|
||||
import { KeepBodyVisible } from "./KeepBodyVisible"
|
||||
import styles from "./sidePeek.module.css"
|
||||
|
||||
interface SidePeekSelfControlledProps extends React.PropsWithChildren {
|
||||
title: string
|
||||
@@ -41,7 +41,7 @@ export default function SidePeekSelfControlled({
|
||||
|
||||
useEffect(() => {
|
||||
if (isOpen) {
|
||||
window.history.pushState(null, '', window.location.href)
|
||||
window.history.pushState(null, "", window.location.href)
|
||||
}
|
||||
}, [isOpen])
|
||||
|
||||
@@ -68,8 +68,8 @@ export default function SidePeekSelfControlled({
|
||||
emphasis
|
||||
onPress={() => handleClose(true)}
|
||||
aria-label={intl.formatMessage({
|
||||
id: 'common.close',
|
||||
defaultMessage: 'Close',
|
||||
id: "common.close",
|
||||
defaultMessage: "Close",
|
||||
})}
|
||||
iconName="close"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user