From 52fa20768f6aea2b101c909202fd5f1b38862f9f Mon Sep 17 00:00:00 2001 From: Emmanuel-Develops Date: Tue, 26 Nov 2024 12:08:04 +0100 Subject: [PATCH] fix: open link in new tab, close banner on link open --- src/components/banner/Banner.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/banner/Banner.tsx b/src/components/banner/Banner.tsx index eea5a35..654ef25 100644 --- a/src/components/banner/Banner.tsx +++ b/src/components/banner/Banner.tsx @@ -75,7 +75,13 @@ export function Banner({

)} {!!rest.linkText && ( - + setShowBanner(false)} + className={cn(defaultStyles.link, styles.link)} + href={rest.linkTo} + target="_blank" + rel="noreferrer" + > {rest.linkText} )}