SHARE
TWEET

Untitled

a guest Jun 15th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const useStyles = makeStyles(theme => ({
  2.     menuLink: theme.styles.menuLinkStyle,
  3. }));
  4.  
  5. function DrawerContents() {
  6.     const classes = useStyles();
  7.  
  8.     // noinspection JSUnresolvedVariable
  9.     return (
  10.         <div>
  11.             <div className={classes.toolbar}>
  12.                 <Link to='/' className={classes.menuLink}> {/*<==== This*/}
  13.                     <Toolbar className={classes.toolbarContent}>
  14.                         <Typography variant="h6" noWrap>
  15.                             {appConfig.projectTitle}
  16.                         </Typography>
  17.                     </Toolbar>
  18.                 </Link>
  19.             </div>
  20.             <Divider/>
  21.             <List>
  22.                 <Link to={'/users'} className={classes.menuLink}> {/*<==== This*/}
  23.                     <ListItem button>
  24.                         <ListItemIcon className={`${classes.icon} ${classes.userIcon}`}>
  25.                             <FontAwesomeIcon icon="user"/>
  26.                         </ListItemIcon>
  27.                         <ListItemText primary='Users'/>
  28.                     </ListItem>
  29.                 </Link>
  30.             </List>
  31.         </div>
  32.     );
  33. }
  34.  
  35. export default DrawerContents;
  36.      
  37. const useStyles = makeStyles(theme => ({
  38.     Link: theme.styles.menuLinkStyle,
  39. }));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top