Move ModalsContextProvider up the context tree (#16095)

GitOrigin-RevId: 2f978f410624597c747f32a84853393a5771582c
This commit is contained in:
Alf Eaton 2023-12-08 09:36:54 +00:00 committed by Copybot
parent 82499334a1
commit 389d16aad1

View file

@ -24,6 +24,7 @@ import { PermissionsProvider } from '@/features/ide-react/context/permissions-co
export const ReactContextRoot: FC = ({ children }) => {
return (
<SplitTestProvider>
<ModalsContextProvider>
<ConnectionProvider>
<IdeReactProvider>
<UserProvider>
@ -40,7 +41,6 @@ export const ReactContextRoot: FC = ({ children }) => {
<LocalCompileProvider>
<DetachCompileProvider>
<ChatProvider>
<ModalsContextProvider>
<EditorManagerProvider>
<OnlineUsersProvider>
<MetadataProvider>
@ -48,7 +48,6 @@ export const ReactContextRoot: FC = ({ children }) => {
</MetadataProvider>
</OnlineUsersProvider>
</EditorManagerProvider>
</ModalsContextProvider>
</ChatProvider>
</DetachCompileProvider>
</LocalCompileProvider>
@ -65,6 +64,7 @@ export const ReactContextRoot: FC = ({ children }) => {
</UserProvider>
</IdeReactProvider>
</ConnectionProvider>
</ModalsContextProvider>
</SplitTestProvider>
)
}