diff --git a/src/Phone.js b/src/Phone.js index f40fc4f..1113bb0 100644 --- a/src/Phone.js +++ b/src/Phone.js @@ -1,13 +1,14 @@ import React from "react"; import "./Phone.css"; import "./i18n"; +import MessageIcon from "@material-ui/icons/Email"; import { Route } from "react-router-dom"; import { HomeApp } from "./apps/home/components/Home"; import { ContactsApp } from "./apps/contacts/components/Contacts"; -import { NotificationBar } from "./os/components/NotificationBar"; import { useSettings } from "./apps/settings/hooks/useSettings"; -import MessageIcon from "@material-ui/icons/Email"; +import { NotificationBar } from "./os/components/NotificationBar"; import { NotificationIcon } from "./os/components/NotificationIcon"; +import { NavigationBar } from "./os/components/NavigationBar"; function Phone() { const [settings] = useSettings(); @@ -33,6 +34,7 @@ function Phone() { + diff --git a/src/os/components/NavigationBar.js b/src/os/components/NavigationBar.js new file mode 100644 index 0000000..4f11efe --- /dev/null +++ b/src/os/components/NavigationBar.js @@ -0,0 +1,42 @@ +import React from "react"; +import { + makeStyles, + BottomNavigation, + BottomNavigationAction, +} from "@material-ui/core"; +import { grey } from "@material-ui/core/colors"; +import { fade } from "@material-ui/core/styles/colorManipulator"; +import KeyboardArrowLeftIcon from "@material-ui/icons/KeyboardArrowLeft"; +import AppsIcon from "@material-ui/icons/Apps"; + +const useStyles = makeStyles(() => ({ + root: { + backgroundColor: fade(grey[800], 0.7), + color: "white", + }, + icon: { + color: "white" + } +})); + +export const NavigationBar = ({ notifications = [] }) => { + const classes = useStyles(); + return ( + {}} + className={classes.root} + > + } + /> + } + /> + + ); +};