Skip to content

Commit

Permalink
updated sidebar to new design (removed approvals)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessh committed Sep 20, 2024
1 parent 0d20bc6 commit 11de694
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 26 deletions.
9 changes: 0 additions & 9 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import SignupPage from "./components/auth/SignupPage";
import ResetPasswordPage from "./components/auth/ResetPasswordPage";
import AnnouncementsPage from "./components/pages/announcements/AnnouncementsPage";
import TasksPage from "./components/pages/tasks/TasksPage";
import ApprovalsPage from "./components/pages/approvals/ApprovalsPage";
import SchedulePage from "./components/pages/schedule/SchedulePage";
import ResidentsPage from "./components/pages/residents/ResidentsPage";
import InsightsPage from "./components/pages/insights/InsightsPage";
Expand Down Expand Up @@ -96,14 +95,6 @@ const App = (): React.ReactElement => {
</PrivateRoute>
}
/>
<Route
path={Routes.APPROVALS_PAGE}
element={
<PrivateRoute>
<ApprovalsPage />
</PrivateRoute>
}
/>
<Route
path={Routes.SCHEDULE_PAGE}
element={
Expand Down
9 changes: 5 additions & 4 deletions frontend/src/components/common/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ const SideBar: React.FC = () => {
{ label: "Home", route: Routes.HOME_PAGE }, // NEED NEW HOME PAGE
{ label: "Schedule", route: Routes.SCHEDULE_PAGE },
{ label: "Announcements", route: Routes.HOME_PAGE }, // NEED NEW NAME
{ label: "Approvals", route: Routes.APPROVALS_PAGE },
{ label: "Participants", route: Routes.RESIDENTS_PAGE }, // RESIDENTS/PARTICIPANTS
{ label: "Task List", route: Routes.TASKS_PAGE },
// { label: "Insights", route: Routes.INSIGHTS_PAGE },
Expand Down Expand Up @@ -133,9 +132,11 @@ const SideBar: React.FC = () => {
</Flex>

<Flex flexDirection="column" alignItems="left">
<Text whiteSpace="nowrap" fontWeight="bold" mb="3">Administrative Staff</Text>

<Button
<Text whiteSpace="nowrap" fontWeight="bold" mb="3">
Administrative Staff
</Text>

<Button
variant="del"
onClick={onLogOutClick}
border="1px solid #C5C8D8"
Expand Down
11 changes: 0 additions & 11 deletions frontend/src/components/pages/approvals/ApprovalsPage.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/src/constants/Routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export const RESET_PASSWORD_PAGE = "/reset-password";

export const TASKS_PAGE = "/tasks";

export const APPROVALS_PAGE = "/approvals";

export const SCHEDULE_PAGE = "/schedule";

export const RESIDENTS_PAGE = "/residents";
Expand Down

0 comments on commit 11de694

Please sign in to comment.