Keyboard management and remove ugly errors

This commit is contained in:
J Francisco Rader committed 2020-08-23 01:47:38 -03:00
1 parent eb570f21b3
commit dd9b3bddff
13 files changed
+156 -34

No files matched your search

+7 -2
View File
@@ -11,12 +11,15 @@ import MessageIcon from "@material-ui/icons/Email";
import { HomeApp } from "./apps/home/components/Home";
import { ContactsApp } from "./apps/contacts/components/ContactsApp";
import { SettingsApp } from "./apps/settings/components/SettingsApp";
import { PhoneApp } from './apps/phone/components/PhoneApp';
import { PhoneApp } from "./apps/phone/components/PhoneApp";
import { ThemeProvider } from "@material-ui/core";
import { CalculatorApp } from "./apps/calculator/components/CalculatorApp";
import { useInitKeyboard } from "./os/hooks/useKeyboard";
function Phone() {
useInitKeyboard();
const { settings, currentTheme } = useSettings();
return (
<ThemeProvider theme={currentTheme()}>
<div className="PhoneWrapper">
@@ -36,7 +39,9 @@ function Phone() {
}}
>
<NotificationBar
notifications={[{ icon: <NotificationIcon Icon={MessageIcon} /> }, { icon: <NotificationIcon Icon={MessageIcon} /> }]}
notifications={[
{ key: 'newMessage', icon: <NotificationIcon Icon={MessageIcon} /> },
]}
/>
<div className="PhoneAppContainer">
<Route exact path="/" component={HomeApp} />