diff --git a/src/containers/phase/Setup/components/AppVersion/AppVersion.tsx b/src/containers/phase/Setup/components/AppVersion/AppVersion.tsx index 528c17562..1472a9ee9 100644 --- a/src/containers/phase/Setup/components/AppVersion/AppVersion.tsx +++ b/src/containers/phase/Setup/components/AppVersion/AppVersion.tsx @@ -1,14 +1,15 @@ -/* eslint-disable i18next/no-literal-string */ import { useEffect, useState } from 'react'; import { getVersion } from '@tauri-apps/api/app'; import { Wrapper } from './styles'; +import { useTranslation } from 'react-i18next'; export default function AppVersion() { + const { t } = useTranslation('common', { useSuspense: false }); const [tariVersion, setTariVersion] = useState(null); useEffect(() => { getVersion().then((version) => { - setTariVersion(version); + setTariVersion('v' + version); }); }, []); @@ -16,7 +17,7 @@ export default function AppVersion() { return ( - Testnet v{tariVersion} + {t('testnet')} {tariVersion} ); } diff --git a/src/containers/phase/Setup/components/AppVersion/styles.ts b/src/containers/phase/Setup/components/AppVersion/styles.ts index 847956fb4..c0fecda85 100644 --- a/src/containers/phase/Setup/components/AppVersion/styles.ts +++ b/src/containers/phase/Setup/components/AppVersion/styles.ts @@ -24,6 +24,6 @@ export const Wrapper = styled.div` line-height: 245.455%; span { - opacity: 0.5; + opacity: 0.6; } `; diff --git a/src/containers/phase/Setup/components/Footer.tsx b/src/containers/phase/Setup/components/Footer.tsx index ea25ea49f..7632f3884 100644 --- a/src/containers/phase/Setup/components/Footer.tsx +++ b/src/containers/phase/Setup/components/Footer.tsx @@ -13,9 +13,10 @@ import { AnimatePresence } from 'framer-motion'; export default function Footer() { const { airdropTokens } = useAirdropStore(); - const isLoggedIn = !!airdropTokens; const allowTelemetry = useAppConfigStore((s) => s.allow_telemetry); + const isLoggedIn = !!airdropTokens; + /* // @peps: Im disabling this for now, // the airdrop share markup requires the AirdropPermission component to be shown