Skip to content

Commit

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

* [TM-1464] update test

---------

Co-authored-by: diego-morales-flores-1996 <[email protected]>
  • Loading branch information
dottyy and diego-morales-flores-1996 authored Nov 22, 2024
1 parent c140aa5 commit af40ec3
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,29 @@ exports[`Storyshots Components/Generic/Layouts/MainLayout Default 1`] = `
</a>
</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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,29 @@ exports[`Storyshots Components/Generic/Navbar Logged Out 1`] = `
</a>
</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"
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 @@ -27,6 +27,11 @@ export const getNavbarItems = (t: typeof useT, myOrg?: MyOrganisationConnection)
url: "/",
visibility: true
},
{
title: t("Dashboards"),
url: "/dashboard",
visibility: true
},
{
title: t("Support"),
url: zendeskSupportLink,
Expand Down

0 comments on commit af40ec3

Please sign in to comment.