From d2000a016678e5cc845c001c3585bfe4abb0f650 Mon Sep 17 00:00:00 2001 From: Sabda Yagra Date: Tue, 18 Feb 2025 13:02:40 +0700 Subject: [PATCH] fix: all content --- app/[locale]/(public)/contact/page.tsx | 16 ++++++++-------- app/[locale]/(public)/faqs/page.tsx | 8 ++++---- app/[locale]/(public)/feedback/page.tsx | 14 ++++++++------ app/[locale]/auth/registration/page.tsx | 14 +++++++------- components/landing-page/footer.tsx | 2 +- components/landing-page/news-tickers.tsx | 2 +- 6 files changed, 29 insertions(+), 27 deletions(-) diff --git a/app/[locale]/(public)/contact/page.tsx b/app/[locale]/(public)/contact/page.tsx index 20306100..68ff5a15 100644 --- a/app/[locale]/(public)/contact/page.tsx +++ b/app/[locale]/(public)/contact/page.tsx @@ -95,35 +95,35 @@ const ContactForm = () => { }; return ( -
+ {/* Header */}
contact

{t("contactUs")}

-

{t("writeMessage")}

-

{t("leaveMessage")}

+

{t("writeMessage")}

+

{t("leaveMessage")}

{/* Form */}
- +
- +
- +
- +
diff --git a/app/[locale]/(public)/faqs/page.tsx b/app/[locale]/(public)/faqs/page.tsx index 9d42ae18..d4ebf029 100644 --- a/app/[locale]/(public)/faqs/page.tsx +++ b/app/[locale]/(public)/faqs/page.tsx @@ -42,7 +42,7 @@ const FAQS: React.FC = () => {
Faqs -

Frequently Asked Questions

+

Frequently Asked Questions

{/* FAQS Items */} @@ -50,10 +50,10 @@ const FAQS: React.FC = () => { {faqs?.map((faq, index) => (
toggleFAQ(index)}> -

{faq.question}

- {openIndex === index ? "−" : "+"} +

{faq.question}

+ {openIndex === index ? "−" : "+"}
- {openIndex === index &&

{faq.answer}

} + {openIndex === index &&

{faq.answer}

}
))} diff --git a/app/[locale]/(public)/feedback/page.tsx b/app/[locale]/(public)/feedback/page.tsx index 1e02bd46..1b1652c2 100644 --- a/app/[locale]/(public)/feedback/page.tsx +++ b/app/[locale]/(public)/feedback/page.tsx @@ -21,7 +21,7 @@ const Rating: React.FC = ({ label, onRate }) => { return (
- {label} + {label}
{[1, 2, 3, 4, 5].map((star) => (
{ : {} } > -

{t("enterOTP")}

+

{t("enterOTP")}

{t("checkInbox")}

@@ -600,7 +600,7 @@ const page = () => { {t("member")} * +
{errors.email?.message}
@@ -781,7 +781,7 @@ const page = () => { - {institution.map((row: any) => ( + {institution?.map((row: any) => ( diff --git a/components/landing-page/footer.tsx b/components/landing-page/footer.tsx index 9a0c1088..99e71e4b 100644 --- a/components/landing-page/footer.tsx +++ b/components/landing-page/footer.tsx @@ -60,7 +60,7 @@ const Footer = () => { Privacy

{t("privacy")}

-
{parse(String(privacy))}
+
{parse(String(privacy))}
diff --git a/components/landing-page/news-tickers.tsx b/components/landing-page/news-tickers.tsx index 13171697..72b01cdc 100644 --- a/components/landing-page/news-tickers.tsx +++ b/components/landing-page/news-tickers.tsx @@ -44,7 +44,7 @@ export default function NewsTicker() { }, 7000); return () => clearInterval(interval); - }, [article.length]); + }, [article?.length]); return (