Skip to content

Commit c807a5f

Browse files
committed
add to en.json a wallet name
1 parent 67e4316 commit c807a5f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/Layout.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import logo from '../assets/images/wallet_white.png';
66
import { useLocation, useNavigate } from 'react-router-dom';
77
import { CSSTransition } from 'react-transition-group';
88
import { useSessionStorage } from '../components/useStorage';
9-
import { Trans } from 'react-i18next';
9+
import { Trans, useTranslation } from 'react-i18next';
1010
import { useApi } from '../api';
1111

1212
const Layout = ({ children, isPermissionGranted, tokenSentInSession }) => {
@@ -18,6 +18,7 @@ const Layout = ({ children, isPermissionGranted, tokenSentInSession }) => {
1818
const api = useApi();
1919
const [isMessageNoGrantedVisible, setIsMessageNoGrantedVisible,] = api.useClearOnClearSession(useSessionStorage('isMessageNoGrantedVisible', null));
2020
const [isMessageGrantedVisible, setIsMessageGrantedVisible,] = api.useClearOnClearSession(useSessionStorage('isMessageGrantedVisible', null));
21+
const { t } = useTranslation();
2122

2223
const handleNavigate = (path) => {
2324
if (location.pathname === path) {
@@ -63,7 +64,7 @@ const Layout = ({ children, isPermissionGranted, tokenSentInSession }) => {
6364
className="text-white text-xl font-bold cursor-pointer"
6465
onClick={() => handleNavigate('/')}
6566
>
66-
wwWallet
67+
{t('common.walletName')}
6768
</h1>
6869
<button className="text-white" onClick={toggleSidebar}>
6970
<GiHamburgerMenu size={24} />

0 commit comments

Comments
 (0)