mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
13f246a85e
Remove use of FileTreeManager in React code GitOrigin-RevId: f15bc9b4f84e0f65709b9850ed8cc5d3637efa7f
53 lines
2 KiB
JavaScript
53 lines
2 KiB
JavaScript
import PropTypes from 'prop-types'
|
|
import createSharedContext from 'react2angular-shared-context'
|
|
|
|
import { UserProvider } from './user-context'
|
|
import { IdeAngularProvider } from './ide-angular-provider'
|
|
import { EditorProvider } from './editor-context'
|
|
import { LocalCompileProvider } from './local-compile-context'
|
|
import { DetachCompileProvider } from './detach-compile-context'
|
|
import { LayoutProvider } from './layout-context'
|
|
import { DetachProvider } from './detach-context'
|
|
import { ChatProvider } from '@/features/chat/context/chat-context'
|
|
import { ProjectProvider } from './project-context'
|
|
import { SplitTestProvider } from './split-test-context'
|
|
import { FileTreeDataProvider } from './file-tree-data-context'
|
|
import { ProjectSettingsProvider } from '@/features/editor-left-menu/context/project-settings-context'
|
|
import { FileTreePathProvider } from '@/features/file-tree/contexts/file-tree-path'
|
|
|
|
export function ContextRoot({ children, ide }) {
|
|
return (
|
|
<SplitTestProvider>
|
|
<IdeAngularProvider ide={ide}>
|
|
<UserProvider>
|
|
<ProjectProvider>
|
|
<FileTreeDataProvider>
|
|
<FileTreePathProvider>
|
|
<DetachProvider>
|
|
<EditorProvider>
|
|
<ProjectSettingsProvider>
|
|
<LayoutProvider>
|
|
<LocalCompileProvider>
|
|
<DetachCompileProvider>
|
|
<ChatProvider>{children}</ChatProvider>
|
|
</DetachCompileProvider>
|
|
</LocalCompileProvider>
|
|
</LayoutProvider>
|
|
</ProjectSettingsProvider>
|
|
</EditorProvider>
|
|
</DetachProvider>
|
|
</FileTreePathProvider>
|
|
</FileTreeDataProvider>
|
|
</ProjectProvider>
|
|
</UserProvider>
|
|
</IdeAngularProvider>
|
|
</SplitTestProvider>
|
|
)
|
|
}
|
|
|
|
ContextRoot.propTypes = {
|
|
children: PropTypes.any,
|
|
ide: PropTypes.object,
|
|
}
|
|
|
|
export const rootContext = createSharedContext(ContextRoot)
|