File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import {
2525import MenuIcon from '@material-ui/icons/Menu' ;
2626import ListItemIcon from '@material-ui/core/ListItemIcon' ;
2727import { faBloggerB } from '@fortawesome/free-brands-svg-icons' ;
28+ import { useSelector } from 'react-redux' ;
2829const drawerWidth = 300 ;
2930
3031const useStyles = makeStyles ( theme => ( {
@@ -120,6 +121,7 @@ const useStyles = makeStyles(theme => ({
120121} ) ) ;
121122export default function DrawerLayout ( { children } ) {
122123 const classes = useStyles ( ) ;
124+ const user = useSelector ( state => state . account . user ) ;
123125 const history = useHistory ( ) ;
124126 const [ toggle , setToggle ] = useState ( false ) ;
125127 const myStyles = {
@@ -168,11 +170,11 @@ export default function DrawerLayout({ children }) {
168170 < Avatar
169171 className = { classes . idavatar }
170172 alt = "ProfileIcon"
171- src = "./static/profile/icons/icons.png"
173+ src = { user ?. photoURL }
172174 />
173175 < div style = { { display : 'block' , marginLeft : '10px' } } >
174176 < Typography style = { { fontSize : '18px' , fontWeight : '600' } } >
175- John Doe
177+ { user ?. displayName }
176178 </ Typography >
177179 < div style = { { display : 'flex' } } >
178180 < Typography variant = "subtitle1" className = { classes . idtext } >
You can’t perform that action at this time.
0 commit comments