@material-ui/icons#AssignmentOutlined JavaScript Examples

The following examples show how to use @material-ui/icons#AssignmentOutlined. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NavBar.js    From jobtriage with MIT License 5 votes vote down vote up
NavBar = props => {
  const classes = useStyles();
  const { children } = props;

  const logout = () => {
    APIService.logout()
      .then(() => {
        document.location = '/';
      })
      // eslint-disable-next-line no-console
      .catch(console.log);
  };

  return (
    <div className={classes.root}>
      <nav className={classes.nav}>
        <div className={classes.logoDiv}>
          <a href="https://www.jobtriage.org/" target="_blank" rel="noopener noreferrer">
            <img src={Logo} alt="logo" className={classes.logo} />
          </a>
        </div>
        <Divider />
        <List component="ul">
          <ListItemWithLink
            primary="Dashboard"
            to="/dashboard"
            textOverrideClass={{ primary: classes.textStyle }}
            icon={<DashboardOutlinedIcon />}
          />
          <ListItemWithLink
            primary="Self Analysis"
            to="/self"
            textOverrideClass={{ primary: classes.textStyle }}
            icon={<AssignmentOutlined />}
          />
          <ListItemWithLink
            primary="Account"
            to="/account"
            textOverrideClass={{ primary: classes.textStyle }}
            icon={<SettingsOutlinedIcon />}
          />
          <ListItemWithClick
            primary="Logout"
            onClick={logout}
            textOverrideClass={{ primary: classes.textStyle }}
            icon={<ExitToAppOutlined />}
          />
        </List>
      </nav>
      <div className={classes.container}>
        {children}
      </div>
    </div>

  );
}