Skip to content

Commit

Permalink
Chore: OmnichannelRoomIconProvider order breaking VideoConfPopup (#27740
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dougfabris authored and sampaiodiego committed Jan 24, 2023
1 parent 83a2a6f commit 256f6e3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
17 changes: 10 additions & 7 deletions apps/meteor/client/providers/MeteorProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { FC } from 'react';

import { OmnichannelRoomIconProvider } from '../components/RoomIcon/OmnichannelRoomIcon/provider/OmnichannelRoomIconProvider';
import AttachmentProvider from '../components/message/Attachments/providers/AttachmentProvider';
import AuthorizationProvider from './AuthorizationProvider';
import AvatarUrlProvider from './AvatarUrlProvider';
Expand Down Expand Up @@ -36,13 +37,15 @@ const MeteorProvider: FC = ({ children }) => (
<DeviceProvider>
<ModalProvider>
<AuthorizationProvider>
<VideoConfProvider>
<CallProvider>
<OmnichannelProvider>
<AttachmentProvider>{children}</AttachmentProvider>
</OmnichannelProvider>
</CallProvider>
</VideoConfProvider>
<OmnichannelRoomIconProvider>
<VideoConfProvider>
<CallProvider>
<OmnichannelProvider>
<AttachmentProvider>{children}</AttachmentProvider>
</OmnichannelProvider>
</CallProvider>
</VideoConfProvider>
</OmnichannelRoomIconProvider>
</AuthorizationProvider>
</ModalProvider>
</DeviceProvider>
Expand Down
13 changes: 5 additions & 8 deletions apps/meteor/client/views/root/AppRoot.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { QueryClientProvider } from '@tanstack/react-query';
import React, { FC, lazy, Suspense } from 'react';

import { OmnichannelRoomIconProvider } from '../../components/RoomIcon/OmnichannelRoomIcon/provider/OmnichannelRoomIconProvider';
import { queryClient } from '../../lib/queryClient';
import PageLoading from './PageLoading';

Expand All @@ -16,13 +15,11 @@ const AppRoot: FC = () => (
<Suspense fallback={<PageLoading />}>
<QueryClientProvider client={queryClient}>
<MeteorProvider>
<OmnichannelRoomIconProvider>
<ConnectionStatusBar />
<BannerRegion />
<AppLayout />
<PortalsWrapper />
<ModalRegion />
</OmnichannelRoomIconProvider>
<ConnectionStatusBar />
<BannerRegion />
<AppLayout />
<PortalsWrapper />
<ModalRegion />
</MeteorProvider>
</QueryClientProvider>
</Suspense>
Expand Down

0 comments on commit 256f6e3

Please sign in to comment.