Skip to content

Commit

Permalink
fix: nagvigate to tradetrust info site on logo click (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinHtet-O authored Jul 31, 2024
1 parent 68e4c88 commit 23aa01f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/NavigationBar/NavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
NAVIGATION_ITEM_TYPE,
} from "@tradetrust-tt/tradetrust-ui-components";
import { LogoutButton } from "./LogoutButton";
import { URLS } from "../../constants/Urls";

export interface NavigationBarProps {
logout?: () => void;
Expand Down Expand Up @@ -74,9 +75,9 @@ export const NavigationBar: FunctionComponent<NavigationBarProps> = ({ logout })

const NavLogo = () => {
return (
<NavLink to={"/"} data-testid="nav-logo-home">
<a href={`${URLS.INFO}`} data-testid="nav-logo-home">
<img src="/tradetrust_logo.svg" />
</NavLink>
</a>
);
};

Expand Down
1 change: 1 addition & 0 deletions src/constants/Urls.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export enum URLS {
INFO = "https://tradetrust.io",
CREATOR = "https://creator.tradetrust.io/",
GITHUB = "https://github.com/TradeTrust/tradetrust-website",
DOCS = "https://docs.tradetrust.io/",
Expand Down

0 comments on commit 23aa01f

Please sign in to comment.