Skip to content

Commit 66b30cc

Browse files
committed
Add troubleshooting guide error bar to call composite config screen (#2433)
* add error bar * Change files * pr fix
1 parent 0f799e3 commit 66b30cc

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

packages/react-composites/src/composites/CallComposite/pages/ConfigurationPage.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,17 @@ export const ConfigurationPage = (props: ConfigurationPageProps): JSX.Element =>
208208
}
209209
};
210210

211+
/* @conditional-compile-remove(call-readiness) */
212+
const permissionsState: {
213+
camera: PermissionState;
214+
microphone: PermissionState;
215+
} = {
216+
camera: cameraPermissionGranted ? 'granted' : 'denied',
217+
microphone: microphonePermissionGranted ? 'granted' : 'denied'
218+
};
219+
/* @conditional-compile-remove(call-readiness) */
220+
const networkErrors = errorBarProps.activeErrorMessages.filter((message) => message.type === 'callNetworkQualityLow');
221+
211222
return (
212223
<Stack className={mobileView ? configurationContainerStyleMobile : configurationContainerStyleDesktop}>
213224
<Stack styles={bannerNotificationStyles}>

0 commit comments

Comments
 (0)