aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/admin/AdminSubPage.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/src/app/views/admin/AdminSubPage.tsx')
-rw-r--r--FrontEnd/src/app/views/admin/AdminSubPage.tsx34
1 files changed, 0 insertions, 34 deletions
diff --git a/FrontEnd/src/app/views/admin/AdminSubPage.tsx b/FrontEnd/src/app/views/admin/AdminSubPage.tsx
deleted file mode 100644
index 5efe1ee3..00000000
--- a/FrontEnd/src/app/views/admin/AdminSubPage.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import React from "react";
-import { Container, Nav } from "react-bootstrap";
-import { useHistory, useRouteMatch } from "react-router";
-
-const AdminSubPage: React.FC = ({ children }) => {
- const match = useRouteMatch<{ name: string }>();
- const history = useHistory();
-
- const name = match.params.name;
-
- function toggle(newTab: string): void {
- history.push(`/admin/${newTab}`);
- }
-
- return (
- <Container>
- <Nav variant="tabs" className="my-2">
- <Nav.Item>
- <Nav.Link
- active={name === "users"}
- onClick={() => {
- toggle("users");
- }}
- >
- Users
- </Nav.Link>
- </Nav.Item>
- </Nav>
- {children}
- </Container>
- );
-};
-
-export default AdminSubPage;