From 558aadc993c7473b3aa5241e3be41919b0f01ff4 Mon Sep 17 00:00:00 2001 From: lavanyagarg112 Date: Wed, 16 Jul 2025 23:18:07 +0800 Subject: [PATCH] Fix last min bugs --- app/AuthClientProvider.tsx | 8 +++++++- app/privacy/page.tsx | 11 +++++++++++ app/terms/page.tsx | 11 +++++++++++ components/organisation/courses/CourseCard.tsx | 6 +++++- 4 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 app/privacy/page.tsx create mode 100644 app/terms/page.tsx diff --git a/app/AuthClientProvider.tsx b/app/AuthClientProvider.tsx index e64460e..a016362 100644 --- a/app/AuthClientProvider.tsx +++ b/app/AuthClientProvider.tsx @@ -15,7 +15,13 @@ export default function AuthClientProvider({ useEffect(() => { if (loading) return; - if (pathname === "/" || pathname === "/auth") return; + if ( + pathname === "/" || + pathname === "/auth" || + pathname === "/terms" || + pathname === "/privacy" + ) + return; if (!user.isLoggedIn) { router.replace("/auth"); return; diff --git a/app/privacy/page.tsx b/app/privacy/page.tsx new file mode 100644 index 0000000..67da1d2 --- /dev/null +++ b/app/privacy/page.tsx @@ -0,0 +1,11 @@ +export default function PrivacyPage() { + return ( +
+ This page is under construction. Please check back later for the privacy + policy. +

+ If you have any questions, please contact support. +

+
+ ); +} diff --git a/app/terms/page.tsx b/app/terms/page.tsx new file mode 100644 index 0000000..5cd6730 --- /dev/null +++ b/app/terms/page.tsx @@ -0,0 +1,11 @@ +export default function TermsPage() { + return ( +
+ This page is under construction. Please check back later for the terms and + conditions. +

+ If you have any questions, please contact support. +

+
+ ); +} diff --git a/components/organisation/courses/CourseCard.tsx b/components/organisation/courses/CourseCard.tsx index 7cff15a..546574a 100644 --- a/components/organisation/courses/CourseCard.tsx +++ b/components/organisation/courses/CourseCard.tsx @@ -153,7 +153,11 @@ export default function CourseCard({ return (

{course.name}

-

{course.description?.slice(0, 100)}

+

+ {course.description && course.description?.length < 100 + ? course.description + : `${course.description?.slice(0, 100)}...`} +

{(course.channel || course.level) && (