From d36ef4ce381d72d13ecf814bc3d466d897f04b48 Mon Sep 17 00:00:00 2001 From: J Francisco Rader Date: Sat, 22 Aug 2020 21:56:12 -0300 Subject: [PATCH] Phone navigation button --- src/os/components/Navigation.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/os/components/Navigation.js b/src/os/components/Navigation.js index d51462f..1eb61ad 100644 --- a/src/os/components/Navigation.js +++ b/src/os/components/Navigation.js @@ -6,6 +6,7 @@ import { } from "@material-ui/core"; import KeyboardArrowLeftIcon from "@material-ui/icons/KeyboardArrowLeft"; import AppsIcon from "@material-ui/icons/Apps"; +import PhoneIcon from "@material-ui/icons/Phone"; import { useHistory } from "react-router-dom"; const useStyles = makeStyles((theme) => ({ @@ -18,24 +19,26 @@ const useStyles = makeStyles((theme) => ({ export const Navigation = () => { const classes = useStyles(); const history = useHistory(); - return ( - value === "back" ? history.goBack() : history.push("/") - } + onChange={(_e, value) => value()} > history.goBack()} icon={} /> history.push('/')} icon={} /> + history.push('/phone')} + icon={} + /> ); };