Skip to content

Commit 1d1b15f

Browse files
authored
fix: android banner DownloadButton onClick should not propagate up (Uniswap#7611)
* android banner link - remove linktarget * stop propagation? * linter
1 parent 1ffaf72 commit 1d1b15f

File tree

1 file changed

+6
-1
lines changed
  • src/components/Banner/AndroidAnnouncementBanner

1 file changed

+6
-1
lines changed

src/components/Banner/AndroidAnnouncementBanner/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ export default function AndroidAnnouncementBanner() {
4848
<ThemedText.LabelMicro>
4949
<Trans>Available now - download from the Google Play Store today</Trans>
5050
</ThemedText.LabelMicro>
51-
<DownloadButton onClick={onClick}>
51+
<DownloadButton
52+
onClick={(e) => {
53+
e.stopPropagation()
54+
onClick()
55+
}}
56+
>
5257
<Trans>Download now</Trans>
5358
</DownloadButton>
5459
</TextContainer>

0 commit comments

Comments
 (0)