Skip to content

Commit

Permalink
fixing links and history pushes in panel header
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhoseinZare committed Jun 24, 2021
1 parent 1d645a2 commit b551399
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions src/layouts/PanelHeader/PanelHeader.layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,33 +126,41 @@ export default function HeaderLayout(props) {
open={isMobileMenuOpen}
onClose={handleMobileMenuClose}
>
<MenuItem onClick={()=>props.history.push('/panel/login')}>
<IconButton aria-label="show 4 new mails">
<MailIcon />
<MenuItem>
<IconButton aria-label="show 4 new mails" >
<Link to="/">
<MailIcon/>
</Link>
</IconButton>
<Link to="/panel/login">
مدیریت
<Link to="/">
بازگشت به سایت
</Link>
</MenuItem>
<MenuItem onClick={()=>props.history.push('/panel/orders')}>
<MenuItem>
<IconButton aria-label="show 4 new mails">
<RestoreIcon />
<Link to="/panel/orders">
<RestoreIcon />
</Link>
</IconButton>
<Link to="/panel/orders">
سفارش ها
</Link>
</MenuItem>
<MenuItem onClick={()=>props.history.push('/panel/quantity')}>
<MenuItem >
<IconButton aria-label="show 4 new mails">
<FavoriteIcon />
<Link to="panel/quantity">
<FavoriteIcon />
</Link>
</IconButton>
<Link to="/panel/quantity">
موجودی و قیمت ها
</Link>
</MenuItem>
<MenuItem onClick={()=>props.history.push('/panel/products')}>
<MenuItem >
<IconButton aria-label="show 4 new mails">
<LocationOnIcon />
<Link to="panel/quantity">
<LocationOnIcon />
</Link>
</IconButton>
<Link to="/panel/products">
کالا ها
Expand All @@ -165,13 +173,12 @@ export default function HeaderLayout(props) {
<div className={classes.grow}>
<AppBar position="static" className={classes.header}>
<Toolbar className={classes.container}>
<MenuItem className={classes.title} onClick={()=>props.history.push('/panel/login')}>
<MenuItem className={classes.title} onClick={()=>props.history.push('/')}>
<Typography variant="p" noWrap>
<Link to="/panel/login" className={classes.headerLinks}>
مدیریت
<Link to="/" className={classes.headerLinks}>
بازگشت به سایت
</Link>
</Typography>
<MailIcon className={classes.icon}/>
</MenuItem>
<div className={classes.sectionDesktop}>
<BottomNavigation
Expand Down

0 comments on commit b551399

Please sign in to comment.