diff --git a/src/pages/student-dashboard/essays/EssayPage.tsx b/src/pages/student-dashboard/essays/EssayPage.tsx index f1faa1d..e4abe03 100644 --- a/src/pages/student-dashboard/essays/EssayPage.tsx +++ b/src/pages/student-dashboard/essays/EssayPage.tsx @@ -17,6 +17,11 @@ import { AlertDialogHeader, AlertDialogTitle, } from "@/components/ui/alert-dialog"; +import { useSession } from '@/hooks/useSession'; +import { useUppercasePreference } from '@/hooks/useUppercasePreference'; +import { AdaptiveText, AdaptiveTitle, AdaptiveParagraph } from '@/components/ui/adaptive-text'; +import { TextCaseToggle } from '@/components/ui/text-case-toggle'; +import { cn } from '@/lib/utils'; interface Essay { id: string; @@ -48,6 +53,8 @@ export function EssayPage() { const [saving, setSaving] = useState(false); const [wordCount, setWordCount] = useState(0); const [showDeleteDialog, setShowDeleteDialog] = useState(false); + const { session } = useSession(); + const { isUpperCase, toggleUppercase, isLoading: isUppercaseLoading } = useUppercasePreference(session?.user?.id); useEffect(() => { if (id) { @@ -157,136 +164,205 @@ export function EssayPage() { return (