Skip to content

Commit

Permalink
included route constants
Browse files Browse the repository at this point in the history
  • Loading branch information
MVarshini committed Sep 25, 2023
1 parent 66eb32c commit 1785a80
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dashboard/src/modules/components/HeaderComponent/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const HeaderComponent = () => {
</PageToggleButton>
</MastheadToggle>
<MastheadMain>
<MastheadBrand href="/">
<MastheadBrand href={"/" + APP_ROUTES.HOME}>
<Brand src={pbenchLogo} className="header-logo" alt="pbench Logo" />
</MastheadBrand>
</MastheadMain>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as APP_ROUTES from "utils/routeConstants";

export const menuOptions = [
{
group: { key: "dashboard", title: "Dashboard" },
Expand All @@ -7,35 +9,35 @@ export const menuOptions = [
submenu: true,
key: "overview",
submenuOf: "dashboard",
link: "overview",
link: APP_ROUTES.OVERVIEW,
},
{
name: "Analysis",
submenu: true,
key: "analysis",
submenuOf: "dashboard",
link: "analysis",
link: APP_ROUTES.ANALYSIS,
},
{
name: "All runs",
submenu: true,
key: "all_runs",
submenuOf: "dashboard",
link: "all-runs",
link: APP_ROUTES.ALL_RUNS,
},
{
name: "Results",
submenu: true,
key: "results",
submenuOf: "dashboard",
link: "results",
link: APP_ROUTES.RESULTS,
},
{
name: "Visualization",
submenu: true,
key: "visualization",
submenuOf: "dashboard",
link: "visualization",
link: APP_ROUTES.VISUALIZATION,
},
],
},
Expand All @@ -47,14 +49,14 @@ export const menuOptions = [
submenu: true,
key: "search",
submenuOf: "tools",
link: "search",
link: APP_ROUTES.SEARCH,
},
],
},
];

export const menuOptionsNonLoggedIn = [
{ key: "dashboard", link: "/", name: "Dashboard" },
{ key: "search", link: "search", name: "Search" },
{ key: "expore", link: "explore", name: "Explore" },
{ key: "search", link: APP_ROUTES.SEARCH, name: "Search" },
{ key: "expore", link: APP_ROUTES.EXPLORE, name: "Explore" },
];

0 comments on commit 1785a80

Please sign in to comment.