From 14f0c305847e24945722851d43a2d30b568234b8 Mon Sep 17 00:00:00 2001
From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
Date: Thu, 11 Aug 2022 00:43:40 +0530
Subject: [PATCH] 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>
---
apps/web/components/dialog/EditLocationDialog.tsx | 12 ++++++++++++
apps/web/public/static/locales/en/common.json | 1 +
2 files changed, 13 insertions(+)
diff --git a/apps/web/components/dialog/EditLocationDialog.tsx b/apps/web/components/dialog/EditLocationDialog.tsx
index f86b41f15d..4028ce5d3d 100644
--- a/apps/web/components/dialog/EditLocationDialog.tsx
+++ b/apps/web/components/dialog/EditLocationDialog.tsx
@@ -255,6 +255,9 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
: undefined
}
/>
+ {locationFormMethods.formState.errors.locationLink && (
+
{t("invalid_whereby_link")}
+ )}
{!booking && (
@@ -303,6 +306,9 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
: undefined
}
/>
+ {locationFormMethods.formState.errors.locationLink && (
+
{t("invalid_around_link")}
+ )}
{!booking && (
@@ -351,6 +357,9 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
: undefined
}
/>
+ {locationFormMethods.formState.errors.locationLink && (
+
{t("invalid_ping_link")}
+ )}
{!booking && (
@@ -399,6 +408,9 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
: undefined
}
/>
+ {locationFormMethods.formState.errors.locationLink && (
+
{t("invalid_riverside_link")}
+ )}
{!booking && (
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index b821b25ac2..9aed1a1c5d 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -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",