fix(phone): only listen to UI Ready

This commit is contained in:
Christopher committed 2021-05-21 00:35:05 +02:00
1 parent 2411c39b95
commit fb32aaef15
6 files changed
+26 -47

No files matched your search

+16 -16
View File
@@ -81,28 +81,28 @@ function Phone() {
const { modal: callModal } = useCallModal();
const { isPhoneReady } = usePhone();
//const { isPhoneReady } = usePhone();
return (
<div>
<WindowSnackbar />
<PhoneWrapper>
{isPhoneReady ? (
{/*{isPhoneReady ? (
<>*/}
<NotificationBar />
<div className="PhoneAppContainer">
<>
<NotificationBar />
<div className="PhoneAppContainer">
<>
<Route exact path="/" component={HomeApp} />
{callModal && <Route exact path="/call" component={CallModal} />}
{apps.map((App) => (
<App.Route key={App.id} />
))}
</>
<NotificationAlert />
<PhoneSnackbar />
</div>
<Navigation />
<Route exact path="/" component={HomeApp} />
{callModal && <Route exact path="/call" component={CallModal} />}
{apps.map((App) => (
<App.Route key={App.id} />
))}
</>
<NotificationAlert />
<PhoneSnackbar />
</div>
<Navigation />
{/*</>
) : (
<Box
component={Paper}
@@ -118,7 +118,7 @@ function Phone() {
</Typography>
<Typography paragraph>{t('GENERIC_WAIT')}</Typography>
</Box>
)}
)}*/}
</PhoneWrapper>
</div>
);