@@ -6,7 +6,7 @@ import logo from '../assets/images/wallet_white.png';
6
6
import { useLocation , useNavigate } from 'react-router-dom' ;
7
7
import { CSSTransition } from 'react-transition-group' ;
8
8
import { useSessionStorage } from '../components/useStorage' ;
9
- import { Trans } from 'react-i18next' ;
9
+ import { Trans , useTranslation } from 'react-i18next' ;
10
10
import { useApi } from '../api' ;
11
11
12
12
const Layout = ( { children, isPermissionGranted, tokenSentInSession } ) => {
@@ -18,6 +18,7 @@ const Layout = ({ children, isPermissionGranted, tokenSentInSession }) => {
18
18
const api = useApi ( ) ;
19
19
const [ isMessageNoGrantedVisible , setIsMessageNoGrantedVisible , ] = api . useClearOnClearSession ( useSessionStorage ( 'isMessageNoGrantedVisible' , null ) ) ;
20
20
const [ isMessageGrantedVisible , setIsMessageGrantedVisible , ] = api . useClearOnClearSession ( useSessionStorage ( 'isMessageGrantedVisible' , null ) ) ;
21
+ const { t } = useTranslation ( ) ;
21
22
22
23
const handleNavigate = ( path ) => {
23
24
if ( location . pathname === path ) {
@@ -63,7 +64,7 @@ const Layout = ({ children, isPermissionGranted, tokenSentInSession }) => {
63
64
className = "text-white text-xl font-bold cursor-pointer"
64
65
onClick = { ( ) => handleNavigate ( '/' ) }
65
66
>
66
- wwWallet
67
+ { t ( 'common.walletName' ) }
67
68
</ h1 >
68
69
< button className = "text-white" onClick = { toggleSidebar } >
69
70
< GiHamburgerMenu size = { 24 } />
0 commit comments