From 97cabcd1ee7bc034aef305e4ef66a520bb0fc055 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 29 Feb 2024 08:00:31 -0300 Subject: applying changes suggested by codespell --- packages/merchant-backoffice-ui/src/Application.tsx | 2 +- .../merchant-backoffice-ui/src/components/form/JumpToElementById.tsx | 4 ++-- .../src/paths/instance/accounts/update/UpdatePage.tsx | 2 +- .../merchant-backoffice-ui/src/paths/instance/orders/list/index.tsx | 2 +- .../merchant-backoffice-ui/src/paths/instance/products/list/index.tsx | 2 +- .../src/paths/instance/templates/list/index.tsx | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) (limited to 'packages/merchant-backoffice-ui') diff --git a/packages/merchant-backoffice-ui/src/Application.tsx b/packages/merchant-backoffice-ui/src/Application.tsx index 57ecb5299..cf46a34d5 100644 --- a/packages/merchant-backoffice-ui/src/Application.tsx +++ b/packages/merchant-backoffice-ui/src/Application.tsx @@ -77,7 +77,7 @@ function ApplicationStatusRoutes(): VNode { notification={{ message: i18n.str`Checking the /config endpoint got authorization error`, type: "ERROR", - description: `The /config endpoint of the backend server should be accesible`, + description: `The /config endpoint of the backend server should be accessible`, }} /> diff --git a/packages/merchant-backoffice-ui/src/components/form/JumpToElementById.tsx b/packages/merchant-backoffice-ui/src/components/form/JumpToElementById.tsx index 2ff23dfd3..a0e1d6ae4 100644 --- a/packages/merchant-backoffice-ui/src/components/form/JumpToElementById.tsx +++ b/packages/merchant-backoffice-ui/src/components/form/JumpToElementById.tsx @@ -3,7 +3,7 @@ import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; -export function JumpToElementById({ testIfExist, onSelect, palceholder, description }: { palceholder: TranslatedString, description: TranslatedString, testIfExist: (id: string) => Promise, onSelect: (id: string) => void }): VNode { +export function JumpToElementById({ testIfExist, onSelect, placeholder, description }: { placeholder: TranslatedString, description: TranslatedString, testIfExist: (id: string) => Promise, onSelect: (id: string) => void }): VNode { const { i18n } = useTranslationContext() const [error, setError] = useState( @@ -35,7 +35,7 @@ export function JumpToElementById({ testIfExist, onSelect, palceholder, descript type="text" value={id ?? ""} onChange={(e) => setId(e.currentTarget.value)} - placeholder={palceholder} + placeholder={placeholder} /> {error &&

{error}

} diff --git a/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx index 9514ed0dc..516015df7 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx @@ -67,7 +67,7 @@ export function UpdatePage({ account, onUpdate, onBack }: Props): VNode { repeatPassword: state.credit_facade_credentials?.type !== "basic" ? undefined : !(state.credit_facade_credentials as any).repeatPassword ? i18n.str`required` : - (state.credit_facade_credentials as any).repeatPassword !== state.credit_facade_credentials.password ? i18n.str`doesnt match` + (state.credit_facade_credentials as any).repeatPassword !== state.credit_facade_credentials.password ? i18n.str`doesn't match` : undefined, }), }; diff --git a/packages/merchant-backoffice-ui/src/paths/instance/orders/list/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/orders/list/index.tsx index 34c7d348a..92e714fb8 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/orders/list/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/orders/list/index.tsx @@ -106,7 +106,7 @@ export default function OrderList({ testIfExist={getPaymentURL} onSelect={onSelect} description={i18n.str`jump to order with the given product ID`} - palceholder={i18n.str`order id`} + placeholder={i18n.str`order id`} />