Skip to content

Commit 1c0c3b4

Browse files
committed
PR fixes
1 parent c046119 commit 1c0c3b4

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

src/app/(web)/(oa)/assessment/[assessmentId]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default function AssessmentPage({ params }: { params: Promise<{ assessmen
2222
const isExamActive =
2323
!assessment.isLoading &&
2424
!assessment.error &&
25+
isConnected &&
2526
assessment.phase !== 'intro' &&
2627
assessment.phase !== 'outro';
2728

src/lib/components/modal/WindowUnfocusedModal.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,14 @@ export function WindowUnfocusedModal({ open, onAcknowledge }: WindowUnfocusedMod
1010

1111
return (
1212
<div className="fixed inset-0 z-50 flex items-center justify-center bg-white/25 p-4 backdrop-blur-md">
13-
<div
14-
aria-labelledby="window-unfocused-title"
15-
aria-modal="true"
16-
role="dialog"
17-
className="bg-sarge-gray-0 border-sarge-gray-200 flex w-full max-w-[380px] flex-col items-center gap-4 rounded-lg border px-8 py-7 text-center shadow-lg"
18-
>
13+
<div className="bg-sarge-gray-0 border-sarge-gray-200 flex w-full max-w-[380px] flex-col items-center gap-4 rounded-lg border px-8 py-7 text-center shadow-lg">
1914
<div className="space-y-3">
20-
<h2
21-
id="window-unfocused-title"
22-
className="text-sarge-gray-900 text-base leading-snug font-bold"
23-
>
15+
<h2 className="text-sarge-gray-900 text-base leading-snug font-bold">
2416
You can&apos;t unfocus your assessment window during the exam
2517
</h2>
2618
<p className="text-sarge-gray-600 text-sm">The admin has been notified.</p>
2719
</div>
28-
<Button className="h-9 min-w-28 px-5" type="button" onClick={onAcknowledge}>
20+
<Button className="h-9 min-w-28 px-5" onClick={onAcknowledge}>
2921
I understand
3022
</Button>
3123
</div>

0 commit comments

Comments
 (0)