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 ( +
+ If you have any questions, please contact support. +
++ If you have any questions, please contact support. +
+{course.description?.slice(0, 100)}
++ {course.description && course.description?.length < 100 + ? course.description + : `${course.description?.slice(0, 100)}...`} +
{(course.channel || course.level) && (