mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(phone): only listen to UI Ready
This commit is contained in:
1 parent
2411c39b95
commit
fb32aaef15
6 files changed
+26
-47
No files matched your search
+16
-16
@@ -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>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user