From c617faf269783b157f11e8fa089a92cfdb5968aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Wed, 11 Oct 2023 16:54:12 +0100 Subject: [PATCH] feat: Move change button to section --- .../@planx/components/shared/Preview/SummaryList.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/editor.planx.uk/src/@planx/components/shared/Preview/SummaryList.tsx b/editor.planx.uk/src/@planx/components/shared/Preview/SummaryList.tsx index 4c02645f18..61f09a4358 100644 --- a/editor.planx.uk/src/@planx/components/shared/Preview/SummaryList.tsx +++ b/editor.planx.uk/src/@planx/components/shared/Preview/SummaryList.tsx @@ -171,13 +171,21 @@ function SummaryListsBySections(props: SummaryListsBySectionsProps) { > {props.flow[`${Object.keys(sections[i])[0]}`]?.data?.title} + props.changeAnswer(filteredBreadcrumbs[0].nodeId)} + component="button" + fontSize="body2.fontSize" + > + Change + the answers in this section + ),