diff options
author | Sebastian <sebasjm@gmail.com> | 2022-03-14 15:20:32 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-03-14 15:21:24 -0300 |
commit | 08959f83bc9f6d5df93cb6c2d34b671bf419d05a (patch) | |
tree | 1a366b05453de18b598c9a587caea7ba6d1c93e7 /packages/taler-wallet-webextension/src/wallet/ProviderAddPage.tsx | |
parent | 1d7c8f7083f2aa98295f1ad28399c8e19a9e7754 (diff) | |
download | wallet-core-08959f83bc9f6d5df93cb6c2d34b671bf419d05a.tar.xz |
take translator from transaltion context
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/ProviderAddPage.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/ProviderAddPage.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/ProviderAddPage.tsx b/packages/taler-wallet-webextension/src/wallet/ProviderAddPage.tsx index 6bb5b6836..051aff0b6 100644 --- a/packages/taler-wallet-webextension/src/wallet/ProviderAddPage.tsx +++ b/packages/taler-wallet-webextension/src/wallet/ProviderAddPage.tsx @@ -18,7 +18,6 @@ import { Amounts, BackupBackupProviderTerms, canonicalizeBaseUrl, - i18n, Translate, } from "@gnu-taler/taler-util"; import { Fragment, h, VNode } from "preact"; @@ -32,6 +31,7 @@ import { LightText, SmallLightText, } from "../components/styled"; +import { useTranslationContext } from "../context/translation"; import { queryToSlashConfig } from "../utils/index"; import * as wxApi from "../wxApi"; @@ -90,6 +90,7 @@ export function SetUrlView({ onConfirm, withError, }: SetUrlViewProps) { + const { i18n } = useTranslationContext(); const [value, setValue] = useState<string>(initialValue || ""); const [urlError, setUrlError] = useState(false); const [name, setName] = useState<string | undefined>(undefined); @@ -190,6 +191,7 @@ export function ConfirmProviderView({ onConfirm, }: ConfirmProviderViewProps) { const [accepted, setAccepted] = useState(false); + const { i18n } = useTranslationContext(); return ( <Fragment> |