mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
Fix react 18 changes
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
833a5d35a4
commit
931302cbec
20 changed files with 47 additions and 22 deletions
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import type { ErrorInfo, ReactNode } from 'react'
|
||||
import type { ErrorInfo, PropsWithChildren, ReactNode } from 'react'
|
||||
import React, { Component } from 'react'
|
||||
import { Button, Container } from 'react-bootstrap'
|
||||
import links from '../../links.json'
|
||||
|
@ -15,7 +15,7 @@ import { Logger } from '../../utils/logger'
|
|||
|
||||
const log = new Logger('ErrorBoundary')
|
||||
|
||||
export class ErrorBoundary extends Component {
|
||||
export class ErrorBoundary extends Component<PropsWithChildren<unknown>> {
|
||||
state: {
|
||||
hasError: boolean
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue