From 1e6e30ec4bdf58b5b6bc19edf8c34f15656e9eb2 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Fri, 20 Nov 2020 18:31:15 +0800
Subject: ...

---
 FrontEnd/src/app/views/admin/AdminSubPage.tsx | 34 ---------------------------
 1 file changed, 34 deletions(-)
 delete mode 100644 FrontEnd/src/app/views/admin/AdminSubPage.tsx

(limited to 'FrontEnd/src/app/views/admin/AdminSubPage.tsx')

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;
-- 
cgit v1.2.3

