diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx b/packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx index a9a4b2e41..8a7a1fa97 100644 --- a/packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx +++ b/packages/taler-wallet-webextension/src/wallet/DestinationSelection/views.tsx @@ -16,7 +16,7 @@ import { styled } from "@linaria/react"; import { Fragment, h, VNode } from "preact"; -import { LoadingError } from "../../components/LoadingError.js"; +import { AmountField } from "../../components/AmountField.js"; import { SelectList } from "../../components/SelectList.js"; import { Input, @@ -25,24 +25,14 @@ import { SvgIcon, } from "../../components/styled/index.js"; import { useTranslationContext } from "../../context/translation.js"; -import { Pages } from "../../NavigationBar.js"; -import { Contact, State } from "./index.js"; -import arrowIcon from "../../svg/chevron-down.svg"; -import { AmountField } from "../../components/AmountField.js"; +import { Button } from "../../mui/Button.js"; import { Grid } from "../../mui/Grid.js"; import { Paper } from "../../mui/Paper.js"; -import { Button } from "../../mui/Button.js"; +import { Pages } from "../../NavigationBar.js"; +import arrowIcon from "../../svg/chevron-down.svg"; +import bankIcon from "../../svg/ri-bank-line.svg"; import { assertUnreachable } from "../../utils/index.js"; - -export function LoadingUriView({ error }: State.LoadingUriError): VNode { - const { i18n } = useTranslationContext(); - return ( - <LoadingError - title={<i18n.Translate>Could not load</i18n.Translate>} - error={error} - /> - ); -} +import { Contact, State } from "./index.js"; export function SelectCurrencyView({ currencies, @@ -61,7 +51,7 @@ export function SelectCurrencyView({ <p> <Input> <SelectList - label={<i18n.Translate>Known currencies</i18n.Translate>} + label={i18n.str`Known currencies`} list={currencies} name="lang" value={""} @@ -214,7 +204,7 @@ export function ReadyGetView({ </h1> <Grid container columns={2} justifyContent="space-between"> <AmountField - label={<i18n.Translate>Amount</i18n.Translate>} + label={i18n.str`Amount`} required handler={amountHandler} /> @@ -304,7 +294,7 @@ export function ReadySendView({ <div> <AmountField - label={<i18n.Translate>Amount</i18n.Translate>} + label={i18n.str`Amount`} required handler={amountHandler} /> @@ -377,7 +367,6 @@ export function ReadySendView({ </Container> ); } -import bankIcon from "../../svg/ri-bank-line.svg"; function RowExample({ info, |