Skip to content

Commit

Permalink
Add handler to actions list
Browse files Browse the repository at this point in the history
  • Loading branch information
RioKnightleyNHS committed Oct 13, 2023
1 parent 42fa8de commit 2af6e0d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/src/pages/lloydGeorgeRecordPage/LloydGeorgeRecordPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,15 @@ function LloydGeorgeRecordPage() {
<ol>
{actionLinks.map((link, i) => (
<li key={link.label + i}>
<Link to="#">{link.label}</Link>
<Link
to="#"
onClick={(e) => {
e.preventDefault();
link.handler();
}}
>
{link.label}
</Link>
</li>
))}
</ol>
Expand Down

0 comments on commit 2af6e0d

Please sign in to comment.