Skip to content

Commit 5fed193

Browse files
authored
Merge pull request #1045 from joshunrau/dev
feat: add thank you message for series
2 parents cdd2712 + 9479e0a commit 5fed193

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
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
)

packages/vite-plugin-runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"exports": {
77
".": {
88
"types": "./src/index.d.ts",
9-
"import": "./src/index.js"
9+
"default": "./src/index.js"
1010
}
1111
},
1212
"scripts": {

0 commit comments

Comments
 (0)