mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-31 11:00:06 +02:00

Upgrade react-error-boundary to version 5, second attempt GitOrigin-RevId: 2b88334b66f0ace383211c147279ff88e9f956bb
15 lines
466 B
TypeScript
15 lines
466 B
TypeScript
import { memo } from 'react'
|
|
import { HistoryProvider } from '@/features/history/context/history-context'
|
|
import withErrorBoundary from '@/infrastructure/error-boundary'
|
|
import { ErrorBoundaryFallback } from '@/shared/components/error-boundary-fallback'
|
|
import History from './history'
|
|
|
|
const HistoryRoot = () => (
|
|
<HistoryProvider>
|
|
<History />
|
|
</HistoryProvider>
|
|
)
|
|
|
|
export default withErrorBoundary(memo(HistoryRoot), () => (
|
|
<ErrorBoundaryFallback />
|
|
))
|