Skip to content

Commit

Permalink
front: Explicit react children
Browse files Browse the repository at this point in the history
  • Loading branch information
forbesus committed Jun 2, 2022
1 parent b4a303d commit 3d5105e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion front/src/components/App/ErrorBoundary.tsx
Expand Up @@ -3,7 +3,7 @@ import * as React from "react"
import { ModalWithoutClose } from "~/components/common/ModalWithoutClose"
import { ModalWithReload } from "../common/ModalWithReload"

export class ErrorBoundary extends React.Component {
export class ErrorBoundary extends React.Component<{ children: React.ReactNode }> {
state = { hasError: false }

static getDerivedStateFromError(_error: Error) {
Expand Down
1 change: 1 addition & 0 deletions front/src/components/common/InternalLink.tsx
Expand Up @@ -12,6 +12,7 @@ export class InternalLink extends React.Component<{
to: RouteId | RouteIdWithParamsObj
className?: string
innerHTML?: string
children?: React.ReactNode
}> {
aRef = React.createRef<HTMLAnchorElement>()

Expand Down

0 comments on commit 3d5105e

Please sign in to comment.