mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 18:47:29 -04:00
Add scope support
This commit is contained in:
@ -22,6 +22,7 @@ import HomeIcon from "@material-ui/icons/Home";
|
||||
import SettingsEthernetIcon from "@material-ui/icons/SettingsEthernet";
|
||||
import SendIcon from "@material-ui/icons/Send";
|
||||
import FolderIcon from "@material-ui/icons/Folder";
|
||||
import LocationSearchingIcon from "@material-ui/icons/LocationSearching";
|
||||
import ChevronLeftIcon from "@material-ui/icons/ChevronLeft";
|
||||
import ChevronRightIcon from "@material-ui/icons/ChevronRight";
|
||||
import clsx from "clsx";
|
||||
@ -33,6 +34,7 @@ export enum Page {
|
||||
ProxySetup,
|
||||
ProxyLogs,
|
||||
Sender,
|
||||
Scope,
|
||||
}
|
||||
|
||||
const drawerWidth = 240;
|
||||
@ -236,6 +238,22 @@ export function Layout({ title, page, children }: Props): JSX.Element {
|
||||
<ListItemText primary="Sender" />
|
||||
</ListItem>
|
||||
</Link>
|
||||
<Link href="/scope" passHref>
|
||||
<ListItem
|
||||
button
|
||||
component="a"
|
||||
key="scope"
|
||||
selected={page === Page.Scope}
|
||||
className={classes.listItem}
|
||||
>
|
||||
<Tooltip title="Scope">
|
||||
<ListItemIcon className={classes.listItemIcon}>
|
||||
<LocationSearchingIcon />
|
||||
</ListItemIcon>
|
||||
</Tooltip>
|
||||
<ListItemText primary="Scope" />
|
||||
</ListItem>
|
||||
</Link>
|
||||
<Link href="/projects" passHref>
|
||||
<ListItem
|
||||
button
|
||||
|
Reference in New Issue
Block a user