diff --git a/phone/src/Phone.tsx b/phone/src/Phone.tsx index 1b395fa..4244f67 100644 --- a/phone/src/Phone.tsx +++ b/phone/src/Phone.tsx @@ -5,7 +5,7 @@ import { Route } from 'react-router-dom'; import { CallModal } from './modal/components/CallModal'; import { Alert } from './ui/components/Alert'; import { HomeApp } from './apps/home/components/Home'; -import { createMuiTheme, ThemeProvider } from '@material-ui/core'; +import { createMuiTheme, ThemeProvider, Slide} from '@material-ui/core'; import { useInitKeyboard } from './os/keyboard/hooks/useKeyboard'; import { NotificationIcon } from './os/notifications/components/NotificationIcon'; import { NotificationBar } from './os/notifications/components/NotificationBar'; @@ -66,9 +66,7 @@ function Phone() { [settings.theme] ); - if (visibility === false) { - return null; - } + document.onkeyup = function (data) { if (data.which === 27) { Nui.send('phone:close'); @@ -77,70 +75,72 @@ function Phone() { return ( -
-
-
+ +
+
-
- <> - ({ - key: qa.id, - icon: ( - - ), - }))} - /> -
- {modal ? ( - - ) : ( - <> - - {allApps.map((App) => ( - - ))} - - )} - {alert ? ( -
- - {t("APPS_"+alert.message)} - -
- ) : null} -
- - +
+
+ <> + ({ + key: qa.id, + icon: ( + + ), + }))} + /> +
+ {modal ? ( + + ) : ( + <> + + {allApps.map((App) => ( + + ))} + + )} + {alert ? ( +
+ + {t("APPS_"+alert.message)} + +
+ ) : null} +
+ + +
-
+ ); }