Skip to content

Commit

Permalink
Remove create home route
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewy-gh committed Nov 11, 2024
1 parent a3c95f6 commit 290ab66
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 176 deletions.
2 changes: 0 additions & 2 deletions frontend/front/src/pages/Admin/AdminContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import AssignProfile from "./assignment/AssignProfile";
import Assignment from "./assignment/Assignment";
import { Box, Tabs, Tab } from "@mui/material";
import { BreadcrumbNav } from "../../features/breadcrumb/BreadcrumbNav";
import CreateNewHome from "./home/CreateNewHome";
import CreateNewUser from "./user/CreateNewUser";
import Home from "./home/Home";
import HomeProfile from "./home/HomeProfile";
Expand Down Expand Up @@ -62,7 +61,6 @@ const AdminContainer = () => {
<Routes>
<Route path={routes.ADMIN_HOME} element={<Home />} />
<Route path={routes.adminHomeProfile()} element={<HomeProfile />} />
<Route path={routes.ADMIN_CREATE_HOME} element={<CreateNewHome />} />
<Route path={routes.ADMIN_USER} element={<User />} />
<Route path={routes.adminUserProfile()} element={<UserProfile />} />
<Route path={routes.ADMIN_CREATE_USER} element={<CreateNewUser />} />
Expand Down
157 changes: 0 additions & 157 deletions frontend/front/src/pages/Admin/home/CreateNewHome.js

This file was deleted.

16 changes: 0 additions & 16 deletions frontend/front/src/pages/Admin/home/Home.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
import { Box, Button } from "@mui/material";
import AddIcon from "@mui/icons-material/Add";
import { Link } from "react-router-dom";
import ContainerTitle from "../component/ContainerTitle";
import HomeTable from "./HomeTable";

const Home = () => {
return (
<ContainerTitle name="HOMES">
<Box display="flex" justifyContent="space-between" alignItems="center">
<Box m={2}>
<Button
variant="contained"
component={Link}
startIcon={<AddIcon />}
to="createHome"
>
Create New Home
</Button>
</Box>
</Box>

<HomeTable />
</ContainerTitle>
);
Expand Down
1 change: 0 additions & 1 deletion frontend/front/src/routing/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const withAdminPrefix = (path) => `${ADMIN_ROUTE}/${path}`;
export const ADMIN_HOME = "home";
export const adminHomeProfile = (hid = ":hid") =>
`${ADMIN_HOME}/homeprofile/${hid}`;
export const ADMIN_CREATE_HOME = `${ADMIN_HOME}/createHome`;

export const ADMIN_USER = "user";
export const adminUserProfile = (uid = ":uid") =>
Expand Down

0 comments on commit 290ab66

Please sign in to comment.