Skip to content

Commit

Permalink
feat: add application number to 'Ahjo submission complete' splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Oct 9, 2024
1 parent 78ca125 commit 98eab4c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
3 changes: 2 additions & 1 deletion frontend/benefit/handler/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,8 @@
},
"submitted": {
"title": "Päätösehdotus on lähetetty Ahjoon",
"text": "Viimeistele päätöskäsittely Ahjossa."
"text": "Viimeistele päätöskäsittely Ahjossa.",
"altText": "Hakemusnumero"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion frontend/benefit/handler/public/locales/fi/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,8 @@
},
"submitted": {
"title": "Päätösehdotus on lähetetty Ahjoon",
"text": "Viimeistele päätöskäsittely Ahjossa."
"text": "Viimeistele päätöskäsittely Ahjossa.",
"altText": "Hakemusnumero"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion frontend/benefit/handler/public/locales/sv/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,8 @@
},
"submitted": {
"title": "Päätösehdotus on lähetetty Ahjoon",
"text": "Viimeistele päätöskäsittely Ahjossa."
"text": "Viimeistele päätöskäsittely Ahjossa.",
"altText": "Hakemusnumero"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useDetermineAhjoMode } from 'benefit/handler/hooks/useDetermineAhjoMode
import { APPLICATION_STATUSES } from 'benefit-shared/constants';
import { Application } from 'benefit-shared/types/application';
import { Button, IconLinkExternal } from 'hds-react';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { useTranslation } from 'next-i18next';
import * as React from 'react';
Expand Down Expand Up @@ -60,10 +61,21 @@ const NotificationView: React.FC<Props> = ({ data }) => {
<$GridCell $colSpan={10}>
<$NotificationTitle>
{isNewAhjoMode
? t(`common:review.decisionProposal.submitted.title`)
? t(`common:review.decisionProposal.submitted.title`, {
applicationNumber: data?.applicationNumber,
})
: t(`${translationsBase}.${translationKey}.title`)}
</$NotificationTitle>
<$NotificationMessage>
{isNewAhjoMode && (
<p>
{t('common:review.decisionProposal.submitted.altText')}
{': '}
<Link href={`${ROUTES.APPLICATION}?id=${data?.id}`}>
{data?.applicationNumber}
</Link>
</p>
)}
{isNewAhjoMode
? t(`common:review.decisionProposal.submitted.text`)
: t(`${translationsBase}.${translationKey}.message`, {
Expand Down

0 comments on commit 98eab4c

Please sign in to comment.