From 9d42e9797fec8b89c1115f7091cf384971df3832 Mon Sep 17 00:00:00 2001 From: Nejc Date: Tue, 27 Jun 2023 22:35:20 +0800 Subject: [PATCH] feat: redirect on logo click #178 (#199) * feat: redirect on logo click #178 * fix: link --------- Co-authored-by: Marcel Ebert --- src/components/Layout/index.tsx | 23 +++++++++++++++-------- src/components/Layout/styles.sass | 4 +--- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index 5c4594eb..62719664 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -1,6 +1,6 @@ import { Bars3Icon } from '@heroicons/react/20/solid'; import { memo, useEffect, useMemo, useState } from 'preact/compat'; -import { Outlet, useParams } from 'react-router-dom'; +import { Link, Outlet, useParams } from 'react-router-dom'; import { useGlobalState } from '../../GlobalStateProvider'; import AmplitudeLogo from '../../assets/amplitud-logo.svg'; import PendulumLogo from '../../assets/pendulum-logo.png'; @@ -63,13 +63,20 @@ export default function Layout(): JSX.Element | null { visible ? 'open left-0' : 'closed -left-full' }`} > - - {isTestnet &&
Foucoco testnet
} +
+ + + {isTestnet &&
Foucoco testnet
} +
+