Skip to content

Commit

Permalink
fixing homepage headers block and tag
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhoseinZare committed Jul 13, 2021
1 parent 52c23ca commit 33a7614
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/site/home-page/Home.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { withRouter } from "react-router-dom"

const useStyles = makeStyles((theme) => ({
groupTitle:{
display:'inline-block',
paddingRight: theme.spacing(2),
paddingTop: theme.spacing(4),
cursor:'pointer',
Expand Down Expand Up @@ -54,11 +55,11 @@ function HomePagePage(props){
const groupLink = `/product/group/${groupId}/${groupName}`
return (
<Fragment key={product.group.id}>
<Grid item xs={12}>
<h1 className={classes.groupTitle} dir="rtl" onClick={()=>{props.history.push(groupLink)}}>
<Grid style={{display: 'flex', justifyContent: 'flex-end'}} item xs={12}>
<h2 className={classes.groupTitle} dir="rtl" onClick={()=>{props.history.push(groupLink)}}>
<a href={groupLink} className={classes.anchorGroupTitle} onClick={event=>event.stopPropagation()}>{product.group.name}</a>
<ArrowLeftIcon className={classes.groupArrow}/>
</h1>
</h2>
</Grid>
{product.products.map(prod=>{
const {name, description, image, id} = prod
Expand Down

0 comments on commit 33a7614

Please sign in to comment.