Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit db02767

Browse files
Merge pull request #172 from Abhishek-kumar09/r
Add icon to profile settings in student dashboard
2 parents 69299ba + 990ca7b commit db02767

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

public/static/images/icons/Vector.svg

Lines changed: 5 additions & 0 deletions
Loading

src/components/Hero/StudentDashboardHero.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,13 @@ const useStyles = makeStyles(theme => ({
6868
}
6969
},
7070
profileSettingTypography: {
71-
display: 'flex'
71+
display: 'flex',
72+
alignItems: 'center'
7273
},
7374
icon: {
7475
marginLeft: '12px',
75-
height: '80%'
76+
height: '30px',
77+
marginBottom: '5px'
7678
},
7779
socialIcon: {
7880
marginLeft: '5px',
@@ -119,17 +121,21 @@ function Hero({ className, ...rest }) {
119121
</Hidden>
120122
<Grid className={classes.rightPanel} item xs={12} md={6}>
121123
<Box className={classes.rightPanelItems}>
122-
<Box className={classes.profileSetting}>
124+
<Box className={classes.profileSetting} justifyContent="center" alignContent="center">
123125
<Typography
124126
className={classes.profileSettingTypography}
125127
variant="subtitle2"
126128
>
127129
Profile Settings
130+
<Link
131+
to="/editProfile"
132+
>
128133
<img
129134
alt="setting-icon"
130135
className={classes.icon}
131-
src="/static/icons/Vector.svg"
132-
></img>
136+
src="/static/images/icons/Vector.svg"
137+
/>
138+
</Link>
133139
</Typography>
134140
</Box>
135141
<Box className={classes.socialIconsBox}>

0 commit comments

Comments
 (0)