From d7676a22cc8565a323b0b9aa2663edda5251d914 Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Wed, 23 Oct 2024 14:31:02 +0200 Subject: [PATCH] Added onClick to anchor tag as well #SW-222 --- components/TempDesignSystem/Link/index.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components/TempDesignSystem/Link/index.tsx b/components/TempDesignSystem/Link/index.tsx index bae4ab9b1..716221b5b 100644 --- a/components/TempDesignSystem/Link/index.tsx +++ b/components/TempDesignSystem/Link/index.tsx @@ -75,7 +75,15 @@ export default function Link({ } return isExternal ? ( - + { + if (onClick) { + onClick(e) + } + }} + /> ) : (