Invitations: move to side menu.

master
Tom Hacohen 4 years ago
parent 1a18ce11ce
commit c7e07150dd

@ -7,7 +7,6 @@ import { Link, useHistory } from "react-router-dom";
import IconButton from "@material-ui/core/IconButton"; import IconButton from "@material-ui/core/IconButton";
import IconAdd from "@material-ui/icons/Add"; import IconAdd from "@material-ui/icons/Add";
import IconInvitation from "@material-ui/icons/MailOutline";
import ContactsIcon from "@material-ui/icons/Contacts"; import ContactsIcon from "@material-ui/icons/Contacts";
import CalendarTodayIcon from "@material-ui/icons/CalendarToday"; import CalendarTodayIcon from "@material-ui/icons/CalendarToday";
import FormatListBulletedIcon from "@material-ui/icons/FormatListBulleted"; import FormatListBulletedIcon from "@material-ui/icons/FormatListBulleted";
@ -57,13 +56,6 @@ export default function CollectionList(props: PropsType) {
return ( return (
<Container> <Container>
<AppBarOverride title="Collections"> <AppBarOverride title="Collections">
<IconButton
component={Link}
title="Invitations"
{...{ to: routeResolver.getRoute("collections.invitations") }}
>
<IconInvitation />
</IconButton>
<IconButton <IconButton
component={Link} component={Link}
title="New" title="New"

@ -11,6 +11,7 @@ import ActionBugReport from "@material-ui/icons/BugReport";
import ActionQuestionAnswer from "@material-ui/icons/QuestionAnswer"; import ActionQuestionAnswer from "@material-ui/icons/QuestionAnswer";
import LogoutIcon from "@material-ui/icons/PowerSettingsNew"; import LogoutIcon from "@material-ui/icons/PowerSettingsNew";
import IconImport from "@material-ui/icons/ImportExport"; import IconImport from "@material-ui/icons/ImportExport";
import IconInvitation from "@material-ui/icons/MailOutline";
import logo from "../images/logo.svg"; import logo from "../images/logo.svg";
@ -51,6 +52,14 @@ export default function SideMenu(props: PropsType) {
history.push(routeResolver.getRoute("collections")); history.push(routeResolver.getRoute("collections"));
}} }}
/> />
<ListItem
primaryText="Invitations"
leftIcon={<IconInvitation />}
onClick={() => {
props.onCloseDrawerRequest();
history.push(routeResolver.getRoute("collections.invitations"));
}}
/>
<ListItem <ListItem
primaryText="Import" primaryText="Import"
leftIcon={<IconImport />} leftIcon={<IconImport />}

Loading…
Cancel
Save