diff --git a/app/ui/UserSettingsForm.tsx b/app/ui/UserSettingsForm.tsx index 4233ecd..fb5eec2 100644 --- a/app/ui/UserSettingsForm.tsx +++ b/app/ui/UserSettingsForm.tsx @@ -297,6 +297,9 @@ const FormFields: FC = ({ userSettings, errors, message }) => { onChange={(e) => handleInputChange("ownerRevolutProfileName", e.target.value)} disabled={pending} /> +
{errors?.ownerRevolutProfileName && errors.ownerRevolutProfileName.map((error: string) => ( @@ -305,6 +308,17 @@ const FormFields: FC = ({ userSettings, errors, message }) => {

))}
+ { + !errors?.ownerRevolutProfileName && formValues.ownerRevolutProfileName.length > 5 ? ( +

{t("revolut-profile--test-link-label")} + {t("revolut-profile--test-link-text")} +

+ ) : null + } {t("payment-additional-notes")} diff --git a/app/ui/ViewLocationCard.tsx b/app/ui/ViewLocationCard.tsx index 9a4793e..f51be74 100644 --- a/app/ui/ViewLocationCard.tsx +++ b/app/ui/ViewLocationCard.tsx @@ -149,19 +149,18 @@ export const ViewLocationCard:FC = ({location, userSettin userSettings?.enableRevolutPayment && tenantPaymentMethod === "revolut" ? <>

{t("payment-info-header")}

-

- To pay via Revolut, please click the following link:{' '} + +

- Pay with Revolut + {t("revolut-link-text")}

- : null } diff --git a/messages/en.json b/messages/en.json index 0117b53..cb2c0a0 100644 --- a/messages/en.json +++ b/messages/en.json @@ -70,7 +70,8 @@ "payment-purpose-code-label": "Purpose code:", "payment-description-label": "Payment description:", "upload-proof-of-payment-legend": "Proof of payment", - "upload-proof-of-payment-label": "Here you can upload proof of payment:" + "upload-proof-of-payment-label": "Here you can upload proof of payment:", + "revolut-link-text": "Pay with Revolut" }, "month-card": { "payed-total-label": "Total monthly expenditure:", @@ -218,6 +219,8 @@ "revolut-profile-label": "Revolut profile name", "revolut-profile-placeholder": "enter your Revolut profile name for receiving payments", "revolut-profile-tooltip": "You can find your Revolut profile name in the Revolut app under your user profile. It is displayed below your name and starts with the '@' symbol (e.g., '@john123').", + "revolut-profile--test-link-label": "Test your Revolut link:", + "revolut-profile--test-link-text": "Pay with Revolut", "payment-additional-notes": "IMPORTANT: For the payment instructions to be displayed to the tenant, you must also enable this option in the property's settings.", diff --git a/messages/hr.json b/messages/hr.json index 629a9f0..9b23b42 100644 --- a/messages/hr.json +++ b/messages/hr.json @@ -70,7 +70,8 @@ "payment-purpose-code-label": "Šifra namjene:", "payment-description-label": "Opis plaćanja:", "upload-proof-of-payment-legend": "Potvrda o uplati", - "upload-proof-of-payment-label": "Ovdje možete priložiti potvrdu o uplati:" + "upload-proof-of-payment-label": "Ovdje možete priložiti potvrdu o uplati:", + "revolut-link-text": "Plati pomoću Revoluta" }, "month-card": { "payed-total-label": "Ukupni mjesečni trošak:", @@ -200,7 +201,6 @@ }, "user-settings-form": { "title": "Korisničke postavke", - "iban-payment-instructions--legend": "Uplata na vaš IBAN", "iban-payment-instructions--intro-message": "Aktiviranjem ove opcije, upute za uplatu bit će uključene u mjesečni izvještaj poslan podstanaru, omogućujući im da izvrše izravnu uplatu putem IBAN-a na vaš bankovni račun.", @@ -224,6 +224,8 @@ "revolut-profile-label": "Naziv vašeg Revolut profila", "revolut-profile-placeholder": "profil putem kojeg ćete primati uplate", "revolut-profile-tooltip": "Naziv vašeg Revolut profila možete pronaći u aplikaciji Revolut u korisničkom profilu. Prikazan je ispod vašeg imena i prezimena - počinje sa znakom '@' (npr: '@ivan123').", + "revolut-profile--test-link-label": "Testiraj svoju Revolut poveznicu:", + "revolut-profile--test-link-text": "Plati pomoću Revoluta", "general-settings-legend": "Opće postavke", "currency-label": "Valuta",