Skip to content

Commit 1a1df89

Browse files
author
Matthias
committed
fix: format
1 parent d42d717 commit 1a1df89

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

examples/next/src/pages/_app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ const App = ({ Component, pageProps }: AppProps) => {
5757
} as const
5858

5959
useEffect(() => {
60-
if (typeof window !== 'undefined') {
60+
if (typeof globalThis !== 'undefined') {
6161
const storageTheme = localStorage.getItem('theme')
6262
if (storageTheme) {
6363
setTheme(storageTheme as 'light' | 'dark')
6464
} else {
65-
const isThemeDark = window.matchMedia(
65+
const isThemeDark = globalThis.matchMedia(
6666
'(prefers-color-scheme: dark)',
6767
).matches
6868

packages/form/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export {
1111
useWatch,
1212
} from 'react-hook-form'
1313
export * from './components'
14-
14+
1515
export { Form } from './components'
1616
export { useOnFieldChange } from './hooks'
1717
export { ErrorProvider, useErrors } from './providers/ErrorContext'

packages/plus/src/components/OfferList/components/Row.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ export const Row = ({
178178
])
179179

180180
const isRowSelected = useMemo(() => {
181-
if (selectable === 'radio') {return radioSelectedRow === offerName}
181+
if (selectable === 'radio') {
182+
return radioSelectedRow === offerName
183+
}
182184

183185
return checkboxSelectedRows.includes(offerName)
184186
}, [offerName, checkboxSelectedRows, radioSelectedRow, selectable])

0 commit comments

Comments
 (0)