Skip to content

Commit 9cfbfaa

Browse files
committed
refactor: use libui card, adjust padding and text
1 parent bfd03f4 commit 9cfbfaa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/web/src/routes/_app/session/start-session.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect, useState } from 'react';
22

3-
import { Heading } from '@douglasneuroinformatics/libui/components';
3+
import { Card, Heading } from '@douglasneuroinformatics/libui/components';
44
import { useTranslation } from '@douglasneuroinformatics/libui/hooks';
55
import type { FormTypes } from '@opendatacapture/runtime-core';
66
import { createFileRoute, useLocation } from '@tanstack/react-router';
@@ -66,17 +66,17 @@ const RouteComponent = () => {
6666
>
6767
<div className="flex grow items-center justify-center">
6868
{currentSession !== null && (
69-
<div className="mx-auto block max-w-3xl rounded-lg border border-gray-200 bg-white p-8 text-green-600 opacity-70 shadow-sm dark:border-gray-700 dark:bg-gray-800 dark:text-green-300">
70-
<div className="flex flex-col items-center justify-center gap-y-12">
69+
<Card className="mx-auto block max-w-3xl border p-12 text-green-600 opacity-70 dark:text-green-300">
70+
<div className="flex flex-col items-center justify-center gap-y-10">
7171
<CheckCircle className="!size-20" />
72-
<p className="max-w-2xl text-center text-xl">
72+
<p className="max-w-2xl text-center text-lg font-medium">
7373
{t({
7474
en: 'The current session must be ended before starting the form again.',
7575
fr: 'La session en cours doit être terminée avant de recommencer le formulaire.'
7676
})}
7777
</p>
7878
</div>
79-
</div>
79+
</Card>
8080
)}
8181
</div>
8282
</motion.div>

0 commit comments

Comments
 (0)