diff options
author | Sebastian <sebasjm@gmail.com> | 2024-02-16 12:18:43 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-02-16 12:18:43 -0300 |
commit | 366e1fb65fb33b7b17b61e2f90269b7fd4097fb4 (patch) | |
tree | 8c450a6e056c6b7e77d32f985be7a3322fd7fc58 /packages | |
parent | c9c11c1b9c28f997614a8e0c099fd1fb601936a3 (diff) | |
download | wallet-core-366e1fb65fb33b7b17b61e2f90269b7fd4097fb4.tar.gz wallet-core-366e1fb65fb33b7b17b61e2f90269b7fd4097fb4.tar.bz2 wallet-core-366e1fb65fb33b7b17b61e2f90269b7fd4097fb4.zip |
fixing codespell
Diffstat (limited to 'packages')
6 files changed, 10 insertions, 10 deletions
diff --git a/packages/demobank-ui/src/Routing.tsx b/packages/demobank-ui/src/Routing.tsx index 00811f2a7..096b6039b 100644 --- a/packages/demobank-ui/src/Routing.tsx +++ b/packages/demobank-ui/src/Routing.tsx @@ -163,7 +163,7 @@ function PublicRounting({ return ( <WithdrawalOperationPage operationId={wopid} - pupose="after-confirmation" + purpose="after-confirmation" onOperationAborted={() => navigateTo(publicPages.login.url({}))} routeClose={publicPages.login} onAuthorizationRequired={() => @@ -281,7 +281,7 @@ function PrivateRouting({ return ( <WithdrawalOperationPage operationId={wopid} - pupose="after-confirmation" + purpose="after-confirmation" onOperationAborted={() => navigateTo(privatePages.home.url({}))} routeClose={privatePages.home} onAuthorizationRequired={() => @@ -299,7 +299,7 @@ function PrivateRouting({ return ( <WithdrawalOperationPage operationId={wopid} - pupose="after-creation" + purpose="after-creation" onOperationAborted={() => navigateTo(privatePages.home.url({}))} routeClose={privatePages.home} onAuthorizationRequired={() => diff --git a/packages/demobank-ui/src/context/navigation.ts b/packages/demobank-ui/src/context/navigation.ts index acdac4364..27fdf4649 100644 --- a/packages/demobank-ui/src/context/navigation.ts +++ b/packages/demobank-ui/src/context/navigation.ts @@ -29,7 +29,7 @@ export type Type = { // addNavigationListener: (listener: (path: string, params: Record<string, string>) => void) => (() => void); }; -// @ts-expect-error shold not be used without provider +// @ts-expect-error should not be used without provider const Context = createContext<Type>(undefined); export const useNavigationContext = (): Type => useContext(Context); @@ -49,8 +49,8 @@ function getPathAndParamsFromWindow() { const { path: initialPath, params: initialParams } = getPathAndParamsFromWindow(); -// there is a posibility that if the browser does a redirection -// (which doesn't go through navigatTo function) and that exectued +// there is a possibility that if the browser does a redirection +// (which doesn't go through navigatTo function) and that executed // too early (before addEventListener runs) it won't be taking // into account const PopStateEventType = "popstate"; diff --git a/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx b/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx index 54ceb81a9..9f5ac421d 100644 --- a/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx +++ b/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx @@ -676,7 +676,7 @@ function validateRawPayto(parsed: PaytoUri, limit: AmountJson, host: string, i18 function validateAmount(amount: AmountJson, limit: AmountJson, i18n: InternationalizationAPI): TranslatedString | undefined { if (amount.currency !== limit.currency) { - return i18n.str`The only currecy allowed is "${limit.currency}"` + return i18n.str`The only currency allowed is "${limit.currency}"` } if (Amounts.isZero(amount)) { return i18n.str`Can't transfer zero amount` diff --git a/packages/demobank-ui/src/pages/WithdrawalOperationPage.tsx b/packages/demobank-ui/src/pages/WithdrawalOperationPage.tsx index e03260dbb..87999a722 100644 --- a/packages/demobank-ui/src/pages/WithdrawalOperationPage.tsx +++ b/packages/demobank-ui/src/pages/WithdrawalOperationPage.tsx @@ -30,7 +30,7 @@ export function WithdrawalOperationPage({ }: { onAuthorizationRequired: () => void; operationId: string; - pupose: "after-creation" | "after-confirmation", + purpose: "after-creation" | "after-confirmation", onOperationAborted: () => void; routeClose: RouteDefinition<Record<string, never>>; }): VNode { diff --git a/packages/demobank-ui/src/pages/admin/AccountForm.tsx b/packages/demobank-ui/src/pages/admin/AccountForm.tsx index 3aba99cea..8bdd65175 100644 --- a/packages/demobank-ui/src/pages/admin/AccountForm.tsx +++ b/packages/demobank-ui/src/pages/admin/AccountForm.tsx @@ -726,7 +726,7 @@ function getAccountId(type: "iban" | "x-taler-bank", s: PaytoString | undefined) if (s === undefined) return undefined; const p = parsePaytoUri(s); if (p === undefined) return undefined; - if (!p.isKnown) return "<unkown>"; + if (!p.isKnown) return "<unknown>"; if (type === "iban" && p.targetType === "iban") return p.iban; if (type === "x-taler-bank" && p.targetType === "x-taler-bank") return p.account; return "<unsupported>"; diff --git a/packages/taler-wallet-webextension/src/wallet/AddExchange/views.tsx b/packages/taler-wallet-webextension/src/wallet/AddExchange/views.tsx index b8da718d9..489d7eb3b 100644 --- a/packages/taler-wallet-webextension/src/wallet/AddExchange/views.tsx +++ b/packages/taler-wallet-webextension/src/wallet/AddExchange/views.tsx @@ -71,7 +71,7 @@ export function VerifyView({ } case "invalid-protocol": { return <WarningBox> - <i18n.Translate>Only exchange accesible through "http" and "https" are allowed.</i18n.Translate> + <i18n.Translate>Only exchange accessible through "http" and "https" are allowed.</i18n.Translate> </WarningBox> } case "invalid-version": { |