Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions govtool/frontend/src/components/organisms/DashboardTopNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, useState } from "react";
import { Box, IconButton } from "@mui/material";

import { VotingPowerChips, Typography } from "@atoms";
import { ICONS } from "@consts";
import { ICONS, PATHS } from "@consts";
import {
useGetDRepVotingPowerQuery,
useGetVoterInfo,
Expand All @@ -13,6 +13,7 @@ import {
useMaintenanceEndingBannerContext,
} from "@organisms";
import { useCardano } from "@context";
import { NavLink } from "react-router-dom";

type DashboardTopNavProps = {
title: string;
Expand Down Expand Up @@ -77,12 +78,18 @@ export const DashboardTopNav = ({
>
<Box display="flex">
{isMobile ? (
<img
alt="app-logo"
height={24}
src={ICONS.appLogoIcon}
width={27}
/>
<NavLink
data-testid="logo-button"
style={{ display: "flex", justifyContent: "center" }}
to={PATHS.dashboard}
>
<img
alt="app-logo"
height={24}
src={ICONS.appLogoIcon}
width={27}
/>
</NavLink>
) : null}
{!isMobile && title ? (
<Typography variant="headline5">{title}</Typography>
Expand Down