@@ -2,9 +2,9 @@ import React, { useEffect, useState } from 'react';
22
33import { Heading } from '@douglasneuroinformatics/libui/components' ;
44import { useTranslation } from '@douglasneuroinformatics/libui/hooks' ;
5- import { CheckCircle } from 'lucide-react' ;
65import type { FormTypes } from '@opendatacapture/runtime-core' ;
76import { createFileRoute , useLocation } from '@tanstack/react-router' ;
7+ import { CheckCircle } from 'lucide-react' ;
88import { AnimatePresence , motion } from 'motion/react' ;
99
1010import { PageHeader } from '@/components/PageHeader' ;
@@ -43,7 +43,7 @@ const RouteComponent = () => {
4343 { t ( 'startSession' ) }
4444 </ Heading >
4545 </ PageHeader >
46- { currentSession == null && (
46+ { currentSession === null && (
4747 < StartSessionForm
4848 currentGroup = { currentGroup }
4949 initialValues = { initialValues }
@@ -59,22 +59,23 @@ const RouteComponent = () => {
5959 { currentSession !== null && (
6060 < motion . div
6161 animate = { { opacity : 1 , scale : 1 } }
62+ className = "flex grow"
6263 exit = { { opacity : 0 , scale : 0 } }
6364 initial = { { opacity : 0 , scale : 0 } }
6465 key = "modal"
6566 >
66- < div className = "flex h-screen items-center justify-center" >
67+ < div className = "flex grow items-center justify-center" >
6768 { currentSession !== null && (
68- < div className = "center mx-auto block max-w-3xl rounded-lg border border-gray-200 bg-white p-4 opacity-70 shadow-sm dark:border-gray-700 dark:bg-gray-800" >
69- < p className = "flex max-w-4xl gap-x-3 text -center text-green-600 dark:text-green-300 " >
70- < span >
71- < CheckCircle /> { ' ' }
72- </ span >
73- { t ( {
74- en : 'The current session must be ended before starting the form again.' ,
75- fr : 'La session en cours doit être terminée avant de recommencer le formulaire.'
76- } ) }
77- </ p >
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 " >
71+ < CheckCircle className = "!size-20" / >
72+ < p className = "max-w-2xl text-center text-xl" >
73+ { t ( {
74+ en : 'The current session must be ended before starting the form again.' ,
75+ fr : 'La session en cours doit être terminée avant de recommencer le formulaire.'
76+ } ) }
77+ </ p >
78+ </ div >
7879 </ div >
7980 ) }
8081 </ div >
0 commit comments