From 399e1c824c741d078612910d3111321579e6eebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nandy=20B=C3=A2?= Date: Sat, 16 Sep 2023 23:09:49 +0200 Subject: [PATCH] feat: show external links - #1767 --- src/components/AaveAlarmLink.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/AaveAlarmLink.tsx b/src/components/AaveAlarmLink.tsx index 9fc744dd9f..b18d2ff852 100644 --- a/src/components/AaveAlarmLink.tsx +++ b/src/components/AaveAlarmLink.tsx @@ -62,11 +62,6 @@ export default function AaveAlarmLink() { Android: 'https://play.google.com/store/apps/details?id=com.aavealarm&pcampaignid=web_share', }; - const handleMenuItemClick = (key: keyof Apps) => { - setAnchorEl(null); - window.open(Apps[key], '_blank'); - }; - const handleClose = () => { setAnchorEl(null); }; @@ -140,9 +135,15 @@ export default function AaveAlarmLink() { {Apps && Object.keys(Apps).map((key) => ( - handleMenuItemClick(key as keyof Apps)}> - {key} - + + {key} + ))}