Skip to content

Commit 9479e0a

Browse files
committed
feat: add thank you message for series
1 parent 4e17eba commit 9479e0a

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

packages/instrument-renderer/src/components/InstrumentRenderer/SeriesInstrumentRenderer.tsx

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Button, Heading, Spinner } from '@douglasneuroinformatics/libui/compone
55
import { useTranslation } from '@douglasneuroinformatics/libui/hooks';
66
import type { Json } from '@opendatacapture/runtime-core';
77
import type { SeriesInstrumentBundleContainer } from '@opendatacapture/schemas/instrument';
8+
import { CircleCheckIcon } from 'lucide-react';
89
import { match } from 'ts-pattern';
910

1011
import { useInterpretedInstrument } from '../../hooks/useInterpretedInstrument';
@@ -140,12 +141,24 @@ export const SeriesInstrumentRenderer = ({
140141
.otherwise(() => null)
141142
)
142143
.with({ index: 2 }, () => (
143-
<ContentPlaceholder
144-
title={t({
145-
en: 'Instrument Complete',
146-
fr: 'Instrument complet'
147-
})}
148-
/>
144+
<div className="mx-auto flex max-w-prose flex-grow flex-col items-center justify-center space-y-1 py-32 text-center">
145+
<CircleCheckIcon
146+
className="fill-green-600 [&>circle]:stroke-transparent"
147+
style={{ height: '36px', width: '36px' }}
148+
/>
149+
<Heading variant="h4">
150+
{t({
151+
en: 'Thank You!',
152+
fr: 'Merci'
153+
})}
154+
</Heading>
155+
<p className="text-muted-foreground text-sm">
156+
{t({
157+
en: 'You have successfully completed all steps of this instrument.',
158+
fr: 'Vous avez terminé avec succès toutes les étapes de cet instrument.'
159+
})}
160+
</p>
161+
</div>
149162
))
150163
.otherwise(() => null)
151164
)

0 commit comments

Comments
 (0)