Skip to content

Commit

Permalink
restyle icons: move menu icon to right side and fill in bread icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy-Pr committed May 28, 2023
1 parent 21f0d63 commit 394ac8a
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/views/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
MenuItem,
} from '@mui/material';
import MenuIcon from '@mui/icons-material/Menu';
import BreakfastDiningOutlinedIcon from '@mui/icons-material/BreakfastDiningOutlined';
import BreakfastDiningIcon from '@mui/icons-material/BreakfastDining';
import './Layout.css';

export function Layout({ listToken }) {
Expand Down Expand Up @@ -43,10 +43,30 @@ export function Layout({ listToken }) {
<AppBar position="relative">
<Container maxWidth="xl">
<Toolbar disableGutters>
{/* This is the title displayed on the left for medium to large screen sizes */}
<BreakfastDiningIcon sx={{ mr: 1 }} fontSize="large" />
<Typography
variant="h3"
// noWrap
component="a"
href="/"
sx={{
mr: 2,
flexGrow: 1,
fontFamily: 'monospace',
fontWeight: 700,
letterSpacing: '.3rem',
color: 'inherit',
textDecoration: 'none',
}}
>
Smart Shopping List
</Typography>

{/* This is the App Icon Menu */}
{listToken ? (
<Box
sx={{ flexGrow: 1, display: { xs: 'flex', md: 'none' } }}
sx={{ flexGrow: 0, display: { xs: 'flex', md: 'none' } }}
>
<IconButton
size="large"
Expand All @@ -56,7 +76,7 @@ export function Layout({ listToken }) {
onClick={handleOpenNavMenu}
color="inherit"
>
<MenuIcon sx={{ mr: 1 }} />
<MenuIcon />
</IconButton>

{/* This is the menu displayed after clicking on the icon */}
Expand Down Expand Up @@ -95,26 +115,6 @@ export function Layout({ listToken }) {
<Box></Box>
)}

{/* This is the title displayed on the left for medium to large screen sizes */}
<BreakfastDiningOutlinedIcon sx={{ mr: 1 }} />
<Typography
variant="h3"
// noWrap
component="a"
href="/"
sx={{
mr: 2,
flexGrow: 1,
fontFamily: 'monospace',
fontWeight: 700,
letterSpacing: '.3rem',
color: 'inherit',
textDecoration: 'none',
}}
>
Smart Shopping List
</Typography>

{/* These are the Nav Links that display on right side for medium and large screens*/}
{listToken ? (
<Breadcrumbs
Expand Down

0 comments on commit 394ac8a

Please sign in to comment.