forked from github/cinny
add callprovider and callactivationeffect
This commit is contained in:
@@ -61,6 +61,8 @@ import { AutoRestoreBackupOnVerification } from '../components/BackupRestore';
|
|||||||
import { RoomSettingsRenderer } from '../features/room-settings';
|
import { RoomSettingsRenderer } from '../features/room-settings';
|
||||||
import { ClientRoomsNotificationPreferences } from './client/ClientRoomsNotificationPreferences';
|
import { ClientRoomsNotificationPreferences } from './client/ClientRoomsNotificationPreferences';
|
||||||
import { SpaceSettingsRenderer } from '../features/space-settings';
|
import { SpaceSettingsRenderer } from '../features/space-settings';
|
||||||
|
import { CallProvider } from './client/CallProvider';
|
||||||
|
import { CallActivationEffect } from './call/CallActivation';
|
||||||
|
|
||||||
export const createRouter = (clientConfig: ClientConfig, screenSize: ScreenSize) => {
|
export const createRouter = (clientConfig: ClientConfig, screenSize: ScreenSize) => {
|
||||||
const { hashRouter } = clientConfig;
|
const { hashRouter } = clientConfig;
|
||||||
@@ -116,6 +118,7 @@ export const createRouter = (clientConfig: ClientConfig, screenSize: ScreenSize)
|
|||||||
<ClientRoomsNotificationPreferences>
|
<ClientRoomsNotificationPreferences>
|
||||||
<ClientBindAtoms>
|
<ClientBindAtoms>
|
||||||
<ClientNonUIFeatures>
|
<ClientNonUIFeatures>
|
||||||
|
<CallProvider>
|
||||||
<ClientLayout
|
<ClientLayout
|
||||||
nav={
|
nav={
|
||||||
<MobileFriendlyClientNav>
|
<MobileFriendlyClientNav>
|
||||||
@@ -125,6 +128,8 @@ export const createRouter = (clientConfig: ClientConfig, screenSize: ScreenSize)
|
|||||||
>
|
>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</ClientLayout>
|
</ClientLayout>
|
||||||
|
<CallActivationEffect />
|
||||||
|
</CallProvider>
|
||||||
<RoomSettingsRenderer />
|
<RoomSettingsRenderer />
|
||||||
<SpaceSettingsRenderer />
|
<SpaceSettingsRenderer />
|
||||||
<ReceiveSelfDeviceVerification />
|
<ReceiveSelfDeviceVerification />
|
||||||
|
|||||||
Reference in New Issue
Block a user