From 9df926e447bb34f2fe7c8efdbd2bf7f9f1f0ea72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Zi=C4=99cina?= Date: Wed, 7 Feb 2024 17:23:36 +0100 Subject: [PATCH] fix: move preference url below preference description (#3843) --- .../ApplicationMultiselectQuestionStep.tsx | 41 ++++++++----------- 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/sites/public/src/components/applications/ApplicationMultiselectQuestionStep.tsx b/sites/public/src/components/applications/ApplicationMultiselectQuestionStep.tsx index 2f36c7d394..d4653a730a 100644 --- a/sites/public/src/components/applications/ApplicationMultiselectQuestionStep.tsx +++ b/sites/public/src/components/applications/ApplicationMultiselectQuestionStep.tsx @@ -194,26 +194,6 @@ const ApplicationMultiselectQuestionStep = ({ } return null } - if (question?.links) { - return ( - <> - {strings?.subTitle ??

{question?.description}

} -
- {question.links.map((link) => ( - - {link.title} - - ))} -
- - ) - } return strings?.subTitle ?? question?.description } @@ -265,10 +245,23 @@ const ApplicationMultiselectQuestionStep = ({
{question?.text} {applicationSection === ApplicationSection.preferences && ( - <> -

{question?.text}

-

{question?.description}

- +
+

{question?.text}

+ {question?.description && ( +

{question?.description}

+ )} + {question.links.map((link) => ( + + {link.title} + + ))} +
)}

{t("application.household.preferredUnit.optionsLabel")}