From d18d4b4927092f77b9983c810054a55d229032e3 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Sun, 19 Jun 2022 13:51:39 -0700 Subject: [PATCH] Improve navigation bottom bar --- frontend/src/components/BottomBar.js | 84 ++++++++++++++++++++-------- 1 file changed, 60 insertions(+), 24 deletions(-) diff --git a/frontend/src/components/BottomBar.js b/frontend/src/components/BottomBar.js index 12a0dc69..736ba1ce 100644 --- a/frontend/src/components/BottomBar.js +++ b/frontend/src/components/BottomBar.js @@ -3,9 +3,10 @@ import { withTranslation } from "react-i18next"; import { Badge, Tooltip, ListItemAvatar, Avatar,Paper, Grid, IconButton, Select, MenuItem, ListItemText, ListItem, ListItemIcon, ListItemButton } from "@mui/material"; import MediaQuery from 'react-responsive' import Flags from 'country-flag-icons/react/3x2' +import { Link as LinkRouter } from "react-router-dom"; // Icons -import SettingsIcon from '@mui/icons-material/Settings'; +import BarChartIcon from '@mui/icons-material/BarChart'; import PeopleIcon from '@mui/icons-material/People'; import InventoryIcon from '@mui/icons-material/Inventory'; import SellIcon from '@mui/icons-material/Sell'; @@ -158,7 +159,13 @@ bottomBarDesktop =()=>{ - + this.props.setAppState({buyChecked: false, sellChecked: true, type:0}) && this.getInfo()} + to={`/book/`} + component={LinkRouter} > + + { - + this.props.setAppState({buyChecked: true, sellChecked: false, type:1}) && this.getInfo()} + to={`/book/`} + component={LinkRouter} > + + { - + this.getInfo()} + to={`/`} + component={LinkRouter} > + + { - + + + { - < IconButton onClick={this.handleClickOpenExchangeSummary}> + + + { - + @@ -321,40 +345,52 @@ bottomBarPhone =()=>{ - - - - + this.props.setAppState({buyChecked: false, sellChecked: true, type:0}) && this.getInfo()} + to={`/book/`} + component={LinkRouter} > + + + - - - - + this.props.setAppState({buyChecked: true, sellChecked: false, type:1}) && this.getInfo()} + to={`/book/`} + component={LinkRouter} > + + + - - - - + this.getInfo()} + to={`/`} + component={LinkRouter} > + + + - - - - + + + + @@ -378,7 +414,7 @@ bottomBarPhone =()=>{ - +