Skip to content

Commit 7244ac2

Browse files
committed
chore: react 19 upgrade
1 parent fdd025b commit 7244ac2

File tree

5 files changed

+2657
-2437
lines changed

5 files changed

+2657
-2437
lines changed

app/components/error-boundary.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ import {
55
useRouteError,
66
} from '@remix-run/react'
77
import { captureRemixErrorBoundaryError } from '@sentry/remix'
8+
import { type ReactElement } from 'react'
89
import { getErrorMessage } from '#app/utils/misc.tsx'
910

1011
type StatusHandler = (info: {
1112
error: ErrorResponse
1213
params: Record<string, string | undefined>
13-
}) => JSX.Element | null
14+
}) => ReactElement | null
1415

1516
export function GeneralErrorBoundary({
1617
defaultStatusHandler = ({ error }) => (
@@ -23,7 +24,7 @@ export function GeneralErrorBoundary({
2324
}: {
2425
defaultStatusHandler?: StatusHandler
2526
statusHandlers?: Record<number, StatusHandler>
26-
unexpectedErrorHandler?: (error: unknown) => JSX.Element | null
27+
unexpectedErrorHandler?: (error: unknown) => ReactElement | null
2728
}) {
2829
const error = useRouteError()
2930
captureRemixErrorBoundaryError(error)

app/components/forms.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export function CheckboxField({
144144
errors,
145145
className,
146146
}: {
147-
labelProps: JSX.IntrinsicElements['label']
147+
labelProps: React.ComponentProps<'label'>
148148
buttonProps: CheckboxProps & {
149149
name: string
150150
form: string

app/root.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import SiteFooter from '#app/components/site-footer.js'
2424
import { useToast } from '#app/components/toaster.tsx'
2525
import { Button } from '#app/components/ui/button.tsx'
2626
import {
27+
SheetDescription,
28+
SheetTitle,
2729
SheetTrigger,
2830
SheetClose,
2931
SheetContent,
@@ -226,6 +228,8 @@ function App() {
226228
className="flex flex-col bg-gray-950 p-6 text-gray-50"
227229
side="left"
228230
>
231+
<SheetTitle className='hidden sr-only'>site nav menu</SheetTitle>
232+
<SheetDescription className='hidden sr-only'>site nav menu open</SheetDescription>
229233
<div className="mb-6 flex items-center justify-between">
230234
<div className="flex items-center justify-center">
231235
<Link to="/" className="group grid leading-snug">

0 commit comments

Comments
 (0)