File tree 5 files changed +2657
-2437
lines changed
5 files changed +2657
-2437
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,13 @@ import {
5
5
useRouteError ,
6
6
} from '@remix-run/react'
7
7
import { captureRemixErrorBoundaryError } from '@sentry/remix'
8
+ import { type ReactElement } from 'react'
8
9
import { getErrorMessage } from '#app/utils/misc.tsx'
9
10
10
11
type StatusHandler = ( info : {
11
12
error : ErrorResponse
12
13
params : Record < string , string | undefined >
13
- } ) => JSX . Element | null
14
+ } ) => ReactElement | null
14
15
15
16
export function GeneralErrorBoundary ( {
16
17
defaultStatusHandler = ( { error } ) => (
@@ -23,7 +24,7 @@ export function GeneralErrorBoundary({
23
24
} : {
24
25
defaultStatusHandler ?: StatusHandler
25
26
statusHandlers ?: Record < number , StatusHandler >
26
- unexpectedErrorHandler ?: ( error : unknown ) => JSX . Element | null
27
+ unexpectedErrorHandler ?: ( error : unknown ) => ReactElement | null
27
28
} ) {
28
29
const error = useRouteError ( )
29
30
captureRemixErrorBoundaryError ( error )
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ export function CheckboxField({
144
144
errors,
145
145
className,
146
146
} : {
147
- labelProps : JSX . IntrinsicElements [ 'label' ]
147
+ labelProps : React . ComponentProps < 'label' >
148
148
buttonProps : CheckboxProps & {
149
149
name : string
150
150
form : string
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import SiteFooter from '#app/components/site-footer.js'
24
24
import { useToast } from '#app/components/toaster.tsx'
25
25
import { Button } from '#app/components/ui/button.tsx'
26
26
import {
27
+ SheetDescription ,
28
+ SheetTitle ,
27
29
SheetTrigger ,
28
30
SheetClose ,
29
31
SheetContent ,
@@ -226,6 +228,8 @@ function App() {
226
228
className = "flex flex-col bg-gray-950 p-6 text-gray-50"
227
229
side = "left"
228
230
>
231
+ < SheetTitle className = 'hidden sr-only' > site nav menu</ SheetTitle >
232
+ < SheetDescription className = 'hidden sr-only' > site nav menu open</ SheetDescription >
229
233
< div className = "mb-6 flex items-center justify-between" >
230
234
< div className = "flex items-center justify-center" >
231
235
< Link to = "/" className = "group grid leading-snug" >
You can’t perform that action at this time.
0 commit comments