diff --git a/components/daily-quiz/daily-quiz-form.tsx b/components/daily-quiz/daily-quiz-form.tsx index 00fee4b..e5d48b6 100644 --- a/components/daily-quiz/daily-quiz-form.tsx +++ b/components/daily-quiz/daily-quiz-form.tsx @@ -1,5 +1,6 @@ "use client"; +import { CheckCircle2 } from "lucide-react"; import { useEffect, useState } from "react"; import { PixelAvatar } from "@/components/avatar/pixel-avatar"; @@ -108,18 +109,77 @@ export function DailyQuizForm() { return (
-
- Today's check-in - - {isCompleted ? "Completed" : "Not completed"} - -
+ {isCompleted && submission ? ( + <> + + +
+
+
+

+ Today's quiz is complete +

+

+ Your wellness check-in and journal are saved for today. You + can review your answers below, and come back tomorrow for + your next quiz. +

+
+
+
- + + + Your pet today + + Based on the wellness check-in you already submitted. + + + + +
+
+

Mood

+

+ {submission.condition.mood} +

+
+
+

Energy

+

+ {submission.condition.energy}/{WELLNESS_SCALE_MAX} +

+
+
+

Health

+

+ {submission.condition.health}/{WELLNESS_SCALE_MAX} +

+
+
+
+
+ + ) : ( +
+ Today's check-in + Not completed +
+ )} + + - Wellness + + {isCompleted ? "Your answers today" : "Wellness"} + - Rate your wellness from 1 to 5. Sleep length uses hours. + {isCompleted + ? "These fields are locked until tomorrow's quiz." + : "Rate your wellness from 1 to 5. Sleep length uses hours."} @@ -165,10 +225,14 @@ export function DailyQuizForm() { - + Daily journal - Write about your day. + + {isCompleted + ? "Your journal entry for today." + : "Write about your day."} +
); }