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 }) => { export const ReactContextRoot: FC = ({ children }) => {
return ( return (
<SplitTestProvider> <SplitTestProvider>
<ModalsContextProvider>
<ConnectionProvider> <ConnectionProvider>
<IdeReactProvider> <IdeReactProvider>
<UserProvider> <UserProvider>
@ -40,7 +41,6 @@ export const ReactContextRoot: FC = ({ children }) => {
<LocalCompileProvider> <LocalCompileProvider>
<DetachCompileProvider> <DetachCompileProvider>
<ChatProvider> <ChatProvider>
<ModalsContextProvider>
<EditorManagerProvider> <EditorManagerProvider>
<OnlineUsersProvider> <OnlineUsersProvider>
<MetadataProvider> <MetadataProvider>
@ -48,7 +48,6 @@ export const ReactContextRoot: FC = ({ children }) => {
</MetadataProvider> </MetadataProvider>
</OnlineUsersProvider> </OnlineUsersProvider>
</EditorManagerProvider> </EditorManagerProvider>
</ModalsContextProvider>
</ChatProvider> </ChatProvider>
</DetachCompileProvider> </DetachCompileProvider>
</LocalCompileProvider> </LocalCompileProvider>
@ -65,6 +64,7 @@ export const ReactContextRoot: FC = ({ children }) => {
</UserProvider> </UserProvider>
</IdeReactProvider> </IdeReactProvider>
</ConnectionProvider> </ConnectionProvider>
</ModalsContextProvider>
</SplitTestProvider> </SplitTestProvider>
) )
} }