From 803e0877d596a471c5ad6d6aabbd6fee30736703 Mon Sep 17 00:00:00 2001 From: Tareq Hisham Date: Thu, 10 Nov 2022 15:17:20 +0200 Subject: [PATCH] fix contact us bugs related #156 --- client/src/Utilities/apiConstatnts.ts | 2 +- client/src/components/LandingPage/ContactUs.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/Utilities/apiConstatnts.ts b/client/src/Utilities/apiConstatnts.ts index 7404b91..7cdb827 100644 --- a/client/src/Utilities/apiConstatnts.ts +++ b/client/src/Utilities/apiConstatnts.ts @@ -1,6 +1,6 @@ export const BaseURL = '/api/v1/'; -export const contactUsURL = `${BaseURL}contact`; +export const contactUsURL = `${BaseURL}contacts`; export const getBillsURL = `${BaseURL}bills?`; export const sendBillSMSURL = `${BaseURL}bills/sendmessage/`; export const authLogin = `${BaseURL}auth/login`; diff --git a/client/src/components/LandingPage/ContactUs.tsx b/client/src/components/LandingPage/ContactUs.tsx index 8bbaed0..7011d31 100644 --- a/client/src/components/LandingPage/ContactUs.tsx +++ b/client/src/components/LandingPage/ContactUs.tsx @@ -21,7 +21,7 @@ const ContactUs: React.FC = () => { sendContactUs(values) .then(() => { form.resetFields(); - return message.success('تم إرسال الشكوى بنجاح'); + return message.success('تم إرسال رسالتك بنجاح'); }) .catch(() => message.error('حدث خطأ ما، يرجى المحاولة لاحقًا')); };