Skip to content

Commit

Permalink
[TM-1464] Update TerraMatch homepage when dashboard launches (#699)
Browse files Browse the repository at this point in the history
* [TM-1464] add route /dashboard in navbar

* [TM-1464] update test

* [TM-1464] add route dashboard in navbar  private

* [TM-1464] update storyshots

---------

Co-authored-by: diego-morales-flores-1996 <[email protected]>
  • Loading branch information
dottyy and diego-morales-flores-1996 authored Nov 22, 2024
1 parent af40ec3 commit af9c273
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,29 @@ exports[`Storyshots Components/Generic/Navbar Logged In 1`] = `
</button>
</div>
</div>
<div>
<div
className="font-regular uppercase xl:w-full hover:opacity-50 text-darkCustom sm:mr-2"
>
<a
href="/dashboard"
onClick={[Function]}
onMouseEnter={[Function]}
onTouchStart={[Function]}
>
<div
className="flex items-center"
>
<span
className="whitespace-nowrap text-darkCustom text-14-light"
data-testid="txt"
>
Dashboards
</span>
</div>
</a>
</div>
</div>
<div>
<div
className="font-regular uppercase xl:w-full hover:opacity-50 text-darkCustom sm:mr-2 tour-help"
Expand Down
5 changes: 5 additions & 0 deletions src/components/generic/Navbar/navbarItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export const getNavbarItems = (t: typeof useT, myOrg?: MyOrganisationConnection)
url: "/home",
visibility
},
{
title: t("Dashboards"),
url: "/dashboard",
visibility: true
},
{
title: t("Opportunities"),
url: "/opportunities",
Expand Down

0 comments on commit af9c273

Please sign in to comment.