Skip to content

Commit 38d826d

Browse files
committed
[OA][Fullstack] - OA Websockets - follow up (#278)
1 parent 2a0f43e commit 38d826d

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

src/lib/components/modal/LostConnectionModal.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Dialog, DialogContent, DialogTitle } from '@/lib/components/ui/Modal';
22
import { VisuallyHidden } from '@radix-ui/react-visually-hidden';
3-
import { Button } from '@/lib/components/ui/Button';
43

54
export type LostConnectionModalProps = {
65
open: boolean;
@@ -10,19 +9,18 @@ export type LostConnectionModalProps = {
109
export function LostConnectionModal({ open, onOpenChange }: LostConnectionModalProps) {
1110
return (
1211
<Dialog open={open} onOpenChange={onOpenChange}>
13-
<DialogContent className="h-[234px] w-[381px] gap-4" showCloseButton={true}>
12+
<DialogContent className="h-[180px] w-[340px] gap-4" showCloseButton={false}>
1413
<VisuallyHidden>
1514
<DialogTitle>Network Disconnected</DialogTitle>
1615
</VisuallyHidden>
17-
<div className="flex flex-col items-center gap-6 text-center">
18-
<p className="text-sarge-gray-800 mt-2 text-base leading-tight font-medium tracking-wide">
19-
You seem to be having issues with your connection.
16+
<div className="flex h-full flex-col items-center justify-center gap-4 px-6 text-center">
17+
<p className="text-md font-semibold tracking-wide">
18+
You have been disconnected
2019
</p>
21-
<p>
22-
If you disconnect again during this exam, your current progress will be
23-
auto-submitted.
20+
<p className="text-sm">
21+
Please check your internet connection. Do not reload the page when trying to
22+
reconnect.
2423
</p>
25-
<Button className="px-4 py-2">I understand</Button>
2624
</div>
2725
</DialogContent>
2826
</Dialog>

0 commit comments

Comments
 (0)