Skip to content

Commit

Permalink
Add the Top component to the side bar navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
jlnat committed Jan 9, 2025
1 parent 9b27fa6 commit fdc4964
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/src/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,15 @@ const Navigation = ({

<Nav id="all-org-nav" style={{ lineHeight: "10px" }} />

<SidebarLink
id="top-tasks-nav"
linkTo="/top-tasks"
handleOnClick={resetPages}
setIsMenuLinksOpened={() => setIsMenuLinksOpened(false)}
>
{Settings.fields.regular.task.allTasksName}
</SidebarLink>

<SidebarLink
id="daily-rollup-nav"
linkTo="/rollup"
Expand Down
2 changes: 2 additions & 0 deletions client/src/pages/Routing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import TaskEdit from "pages/tasks/Edit"
import MyTasks from "pages/tasks/MyTasks"
import TaskNew from "pages/tasks/New"
import TaskShow from "pages/tasks/Show"
import TopTasks from "pages/tasks/Top"
import { PAGE_URLS } from "pages/util"
import React, { useContext } from "react"
import { Navigate, Route, Routes } from "react-router-dom"
Expand Down Expand Up @@ -174,6 +175,7 @@ const Routing = () => {
<Route path="graphiql" element={<GraphiQL />} />
</Route>
)}
<Route path={PAGE_URLS.TOP_TASKS} element={<TopTasks />} />
<Route path={PAGE_URLS.INSIGHTS}>
<Route path=":insight" element={<InsightsShow />} />
</Route>
Expand Down
1 change: 1 addition & 0 deletions client/src/pages/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const PAGE_URLS = {
POSITIONS: "/positions",
TASKS: "/tasks",
ADMIN: "/admin",
TOP_TASKS: "/top-tasks",
INSIGHTS: "/insights",
DASHBOARDS: "/dashboards",
ONBOARDING: "/onboarding",
Expand Down

0 comments on commit fdc4964

Please sign in to comment.