diff --git a/front/src/components/App/ErrorBoundary.tsx b/front/src/components/App/ErrorBoundary.tsx index f0740c1..f65f509 100644 --- a/front/src/components/App/ErrorBoundary.tsx +++ b/front/src/components/App/ErrorBoundary.tsx @@ -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) { diff --git a/front/src/components/common/InternalLink.tsx b/front/src/components/common/InternalLink.tsx index b94b82e..74e47b8 100644 --- a/front/src/components/common/InternalLink.tsx +++ b/front/src/components/common/InternalLink.tsx @@ -12,6 +12,7 @@ export class InternalLink extends React.Component<{ to: RouteId | RouteIdWithParamsObj className?: string innerHTML?: string + children?: React.ReactNode }> { aRef = React.createRef()