Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Dec 9, 2024
1 parent 95982ee commit d0b25dd
Show file tree
Hide file tree
Showing 7 changed files with 4,657 additions and 3,591 deletions.
5 changes: 3 additions & 2 deletions app/components/error-boundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import {
useRouteError,
} from '@remix-run/react'
import { captureRemixErrorBoundaryError } from '@sentry/remix'
import { type ReactElement } from 'react'
import { getErrorMessage } from '#app/utils/misc.tsx'

type StatusHandler = (info: {
error: ErrorResponse
params: Record<string, string | undefined>
}) => JSX.Element | null
}) => ReactElement | null

export function GeneralErrorBoundary({
defaultStatusHandler = ({ error }) => (
Expand All @@ -23,7 +24,7 @@ export function GeneralErrorBoundary({
}: {
defaultStatusHandler?: StatusHandler
statusHandlers?: Record<number, StatusHandler>
unexpectedErrorHandler?: (error: unknown) => JSX.Element | null
unexpectedErrorHandler?: (error: unknown) => ReactElement | null
}) {
const error = useRouteError()
captureRemixErrorBoundaryError(error)
Expand Down
2 changes: 1 addition & 1 deletion app/components/forms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function CheckboxField({
errors,
className,
}: {
labelProps: JSX.IntrinsicElements['label']
labelProps: React.ComponentProps<'label'>
buttonProps: CheckboxProps & {
name: string
form: string
Expand Down
Loading

0 comments on commit d0b25dd

Please sign in to comment.