fix: error message for riverside and whereby added (#3751)

* fix: error message for riverside and whereby added

* fix: around and ping error message added

Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>
This commit is contained in:
Udit Takkar 2022-08-11 00:43:40 +05:30 committed by GitHub
parent 4bfa63e804
commit 14f0c30584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -255,6 +255,9 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
: undefined
}
/>
{locationFormMethods.formState.errors.locationLink && (
<p className="mt-1 text-sm text-red-500">{t("invalid_whereby_link")}</p>
)}
</div>
{!booking && (
<div className="mt-3">
@ -303,6 +306,9 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
: undefined
}
/>
{locationFormMethods.formState.errors.locationLink && (
<p className="mt-1 text-sm text-red-500">{t("invalid_around_link")}</p>
)}
</div>
{!booking && (
<div className="mt-3">
@ -351,6 +357,9 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
: undefined
}
/>
{locationFormMethods.formState.errors.locationLink && (
<p className="mt-1 text-sm text-red-500">{t("invalid_ping_link")}</p>
)}
</div>
{!booking && (
<div className="mt-3">
@ -399,6 +408,9 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
: undefined
}
/>
{locationFormMethods.formState.errors.locationLink && (
<p className="mt-1 text-sm text-red-500">{t("invalid_riverside_link")}</p>
)}
</div>
{!booking && (
<div className="mt-3">

View File

@ -971,6 +971,7 @@
"invalid_around_link": "Please enter a valid Around Link",
"set_riverside_link": "Set Riverside link",
"invalid_riverside_link": "Please enter a valid Riverside Link",
"invalid_ping_link": "Please enter a valid Ping.gg Link",
"add_exchange2013": "Connect Exchange 2013 Server",
"add_exchange2016": "Connect Exchange 2016 Server",
"custom_template": "Custom template",