From 15647469fe6a651f5d4ddabe7da91767fba6eca5 Mon Sep 17 00:00:00 2001 From: Zishan Mohd Date: Fri, 7 Nov 2025 02:23:07 +0530 Subject: [PATCH 1/2] Update: Modify PIX Payments CTA title and change link opening behavior --- src/hooks/useHomeCarouselCTAs.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/hooks/useHomeCarouselCTAs.tsx b/src/hooks/useHomeCarouselCTAs.tsx index b388afad2..0c1544098 100644 --- a/src/hooks/useHomeCarouselCTAs.tsx +++ b/src/hooks/useHomeCarouselCTAs.tsx @@ -36,12 +36,15 @@ export const useHomeCarouselCTAs = () => { _carouselCTAs.push({ id: 'merchant-map-pix', - title: '20% Off with PIX Payments', + title: 'Up to 10% cashback for Tier 2 users with PIX Payments', description: 'Click to explore participating merchants. Pay with PIX QR, save instantly, earn points.', iconContainerClassName: 'bg-secondary-1', icon: 'shield', onClick: () => { - router.push('https://peanutprotocol.notion.site/Peanut-Foodie-Guide-29a83811757980e79896f2a610d6591a') + window.open( + 'https://peanutprotocol.notion.site/Peanut-Foodie-Guide-29a83811757980e79896f2a610d6591a', + '_blank' + ) }, logo: PIX, secondaryIcon: 'https://flagcdn.com/w320/br.png', From 8eb08030924a32b4737d1efdfe0505c9f106fd90 Mon Sep 17 00:00:00 2001 From: Zishan Mohd Date: Fri, 7 Nov 2025 02:33:42 +0530 Subject: [PATCH 2/2] fix: Update link opening behavior in useHomeCarouselCTAs to enhance security --- src/hooks/useHomeCarouselCTAs.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/useHomeCarouselCTAs.tsx b/src/hooks/useHomeCarouselCTAs.tsx index 0c1544098..6103e5653 100644 --- a/src/hooks/useHomeCarouselCTAs.tsx +++ b/src/hooks/useHomeCarouselCTAs.tsx @@ -43,7 +43,8 @@ export const useHomeCarouselCTAs = () => { onClick: () => { window.open( 'https://peanutprotocol.notion.site/Peanut-Foodie-Guide-29a83811757980e79896f2a610d6591a', - '_blank' + '_blank', + 'noopener,noreferrer' ) }, logo: PIX,