mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
import useWaitForI18n from '@/shared/hooks/use-wait-for-i18n'
|
|
import withErrorBoundary from '@/infrastructure/error-boundary'
|
|
import { GenericErrorBoundaryFallback } from '@/shared/components/generic-error-boundary-fallback'
|
|
import { SplitTestProvider } from '@/shared/context/split-test-context'
|
|
import { UserSettingsProvider } from '@/shared/context/user-settings-context'
|
|
import { UserListProvider } from './user-list/context/user-list-context'
|
|
import { ProjectListProvider } from './project-list/context/project-list-context'
|
|
import ProjectListRoot from './project-list/components/project-list-root'
|
|
|
|
function ManageProjectsRoot() {
|
|
const { isReady } = useWaitForI18n()
|
|
|
|
if (!isReady) return null
|
|
|
|
return (
|
|
<UserListProvider>
|
|
<ProjectListProvider projectsOwnerId={null}>
|
|
<SplitTestProvider>
|
|
<UserSettingsProvider>
|
|
<ProjectListRoot />
|
|
</UserSettingsProvider>
|
|
</SplitTestProvider>
|
|
</ProjectListProvider>
|
|
</UserListProvider>
|
|
)
|
|
}
|
|
|
|
export default withErrorBoundary(ManageProjectsRoot, () => (
|
|
<GenericErrorBoundaryFallback />
|
|
))
|
|
|