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 { useCallback, useContext, useRef } from 'react'
|
||||
import { Dialog, Modal, ModalOverlay } from 'react-aria-components'
|
||||
import { IconButton } from '../IconButton'
|
||||
import { Typography } from '../Typography'
|
||||
import { useCallback, useContext, useRef } from "react"
|
||||
import { Dialog, Modal, ModalOverlay } from "react-aria-components"
|
||||
import { IconButton } from "../IconButton"
|
||||
import { Typography } from "../Typography"
|
||||
|
||||
import { SidePeekContext } from './SidePeekContext'
|
||||
import { SidePeekContext } from "./SidePeekContext"
|
||||
|
||||
import SidePeekSEO from './SidePeekSEO'
|
||||
import SidePeekSEO from "./SidePeekSEO"
|
||||
|
||||
import { debounce } from '@scandic-hotels/common/utils/debounce'
|
||||
import { KeepBodyVisible } from './KeepBodyVisible'
|
||||
import styles from './sidePeek.module.css'
|
||||
import { debounce } from "@scandic-hotels/common/utils/debounce"
|
||||
import { KeepBodyVisible } from "./KeepBodyVisible"
|
||||
import styles from "./sidePeek.module.css"
|
||||
|
||||
interface SidePeekProps {
|
||||
contentKey?: string
|
||||
@@ -45,7 +45,7 @@ export default function SidePeek({
|
||||
const height = entry.contentRect.height
|
||||
|
||||
dialogRef.current?.style.setProperty(
|
||||
'--sidepeek-header-height',
|
||||
"--sidepeek-header-height",
|
||||
`${height}px`
|
||||
)
|
||||
}, 100)
|
||||
@@ -56,7 +56,7 @@ export default function SidePeek({
|
||||
return () => {
|
||||
observer.unobserve(node)
|
||||
observer.disconnect()
|
||||
dialogRef.current?.style.removeProperty('--sidepeek-header-height')
|
||||
dialogRef.current?.style.removeProperty("--sidepeek-header-height")
|
||||
}
|
||||
}
|
||||
}, [])
|
||||
|
||||
Reference in New Issue
Block a user