Skip to content

Commit

Permalink
wallet-ext: logo link to tokens view
Browse files Browse the repository at this point in the history
  • Loading branch information
pchrysochoidis committed Jul 27, 2022
1 parent 261d379 commit a6079f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions wallet/src/ui/app/pages/home/Home.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@
.logo {
color: v.use(v.$colors-text-on-background);
}

.logo-link {
text-decoration: none;
color: inherit;
}
7 changes: 5 additions & 2 deletions wallet/src/ui/app/pages/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import { useEffect } from 'react';
import { Outlet } from 'react-router-dom';
import { Link, Outlet } from 'react-router-dom';
import { of, filter, switchMap, from, defer, repeat } from 'rxjs';

import Loading from '_components/loading';
Expand Down Expand Up @@ -40,7 +40,9 @@ const HomePage = () => {
<div className={st.container}>
<div className={st.header}>
<span />
<Logo className={st.logo} txt={true} />
<Link to="/tokens" className={st.logoLink}>
<Logo className={st.logo} txt={true} />
</Link>
<MenuButton className={st.menuButton} />
</div>
<div className={st.content}>
Expand All @@ -64,3 +66,4 @@ export { default as TransactionDetailsPage } from './transaction-details';
export { default as TransactionsPage } from './transactions';
export { default as TransferCoinPage } from './transfer-coin';
export { default as TransferNFTPage } from './transfer-nft';
export { default as StakeNew } from './stake-new';

0 comments on commit a6079f4

Please sign in to comment.