mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
Nav bar
This commit is contained in:
1 parent
35b430eef6
commit
bcdcbf4bb3
2 files changed
+46
-2
No files matched your search
+4
-2
@@ -1,13 +1,14 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import "./Phone.css";
|
import "./Phone.css";
|
||||||
import "./i18n";
|
import "./i18n";
|
||||||
|
import MessageIcon from "@material-ui/icons/Email";
|
||||||
import { Route } from "react-router-dom";
|
import { Route } from "react-router-dom";
|
||||||
import { HomeApp } from "./apps/home/components/Home";
|
import { HomeApp } from "./apps/home/components/Home";
|
||||||
import { ContactsApp } from "./apps/contacts/components/Contacts";
|
import { ContactsApp } from "./apps/contacts/components/Contacts";
|
||||||
import { NotificationBar } from "./os/components/NotificationBar";
|
|
||||||
import { useSettings } from "./apps/settings/hooks/useSettings";
|
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 { NotificationIcon } from "./os/components/NotificationIcon";
|
||||||
|
import { NavigationBar } from "./os/components/NavigationBar";
|
||||||
|
|
||||||
function Phone() {
|
function Phone() {
|
||||||
const [settings] = useSettings();
|
const [settings] = useSettings();
|
||||||
@@ -33,6 +34,7 @@ function Phone() {
|
|||||||
<Route exact path="/" component={HomeApp} />
|
<Route exact path="/" component={HomeApp} />
|
||||||
<Route exact path="/contacts" component={ContactsApp} />
|
<Route exact path="/contacts" component={ContactsApp} />
|
||||||
</div>
|
</div>
|
||||||
|
<NavigationBar />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -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 (
|
||||||
|
<BottomNavigation
|
||||||
|
value={null}
|
||||||
|
onChange={() => {}}
|
||||||
|
className={classes.root}
|
||||||
|
>
|
||||||
|
<BottomNavigationAction
|
||||||
|
label="Back"
|
||||||
|
value="back"
|
||||||
|
icon={<KeyboardArrowLeftIcon className={classes.icon} color="error" />}
|
||||||
|
/>
|
||||||
|
<BottomNavigationAction
|
||||||
|
label="Favorites"
|
||||||
|
value="favorites"
|
||||||
|
icon={<AppsIcon className={classes.icon} />}
|
||||||
|
/>
|
||||||
|
</BottomNavigation>
|
||||||
|
);
|
||||||
|
};
|
||||||
Reference in new issue
Block a user