Skip to content

Commit

Permalink
feat: Move change button to section
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Oct 11, 2023
1 parent ed19eb7 commit c617faf
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,21 @@ function SummaryListsBySections(props: SummaryListsBySectionsProps) {
>
{props.flow[`${Object.keys(sections[i])[0]}`]?.data?.title}
</Typography>
<Link
onClick={() => props.changeAnswer(filteredBreadcrumbs[0].nodeId)}
component="button"
fontSize="body2.fontSize"
>
Change
<span style={visuallyHidden}>the answers in this section</span>
</Link>
</Box>
<SummaryList
summaryBreadcrumbs={filteredBreadcrumbs}
flow={props.flow}
passport={props.passport}
changeAnswer={props.changeAnswer}
showChangeButton={props.showChangeButton}
showChangeButton={false}
/>
</React.Fragment>
),
Expand Down

0 comments on commit c617faf

Please sign in to comment.