+ Competition will allow entering within {timeWindow} minutes
+
Individual Quiz
{quizDuration} minutes
@@ -48,9 +59,23 @@ export default function QuizIntro({
not be expected to be to scale.
-
+ {isFinished ? (
+
+ ) : isEntryClosed ? (
+
+ ) : isSubmitted ? (
+
+ ) : (
+
+ )}
);
diff --git a/client/src/components/ui/mobilenav.tsx b/client/src/components/ui/mobilenav.tsx
index 542909f..781dc13 100644
--- a/client/src/components/ui/mobilenav.tsx
+++ b/client/src/components/ui/mobilenav.tsx
@@ -1,12 +1,16 @@
import { AlignJustify, X } from "lucide-react";
import Image from "next/image";
import Link from "next/link";
+import { useRouter } from "next/router";
import { Drawer } from "vaul";
import { Button } from "@/components/ui/button";
import { LoginModal } from "@/components/ui/Users/login-modal";
+import { useAuth } from "@/context/auth-provider";
export default function MobileNav() {
+ const router = useRouter();
+ const { isLoggedIn } = useAuth();
return (