From f5bf8f9dfe1f1d9ead0eb8f80bbbb7fa3556b3f3 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Fri, 3 Mar 2023 11:47:06 +0100 Subject: [PATCH] fix multiple onClick handlers --- .../src/lib/components/UmlDownload.tsx | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/libs/remix-ui/solidity-uml-gen/src/lib/components/UmlDownload.tsx b/libs/remix-ui/solidity-uml-gen/src/lib/components/UmlDownload.tsx index 69bbd20610..8868e43ce6 100644 --- a/libs/remix-ui/solidity-uml-gen/src/lib/components/UmlDownload.tsx +++ b/libs/remix-ui/solidity-uml-gen/src/lib/components/UmlDownload.tsx @@ -55,7 +55,12 @@ export default function UmlDownload(props: UmlDownloadProps) { > - props.download('png')}> + { + _paq.push(['trackEvent', 'solidityumlgen', 'download', 'downloadAsPng']) + props.download('png') + }} + >
{ - _paq.push(['trackEvent', 'solidityumlgen', 'download', 'downloadAsPng']) - props.download('png') - }} > - props.download('pdf')}> + { + _paq.push(['trackEvent', 'solUmlgen', 'download', 'downloadAsPdf']) + props.download('pdf') + }} + >
{ - _paq.push(['trackEvent', 'solUmlgen', 'download', 'downloadAsPdf']) - props.download('pdf') - }} >