From 55acb037f2144c0e36cd6244050ccff4c632903f Mon Sep 17 00:00:00 2001 From: Richard Tetaz Date: Mon, 4 Mar 2024 20:30:18 +0100 Subject: [PATCH] Add onUpgrade callback to UpsellModal --- packages/components/components/upsell/modal/UpsellModal.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/components/components/upsell/modal/UpsellModal.tsx b/packages/components/components/upsell/modal/UpsellModal.tsx index 7c2871b016..107215d810 100644 --- a/packages/components/components/upsell/modal/UpsellModal.tsx +++ b/packages/components/components/upsell/modal/UpsellModal.tsx @@ -100,6 +100,7 @@ export interface UpsellModalProps { title: string; upgradePath: string; onClose?: () => void; + onUpgrade?: () => void; headerType?: UpsellHeaderType; hideInfo?: boolean; size?: ModalSize; @@ -114,10 +115,12 @@ const UpsellModal = ({ upgradePath, 'data-testid': dataTestid, onClose, + onUpgrade, headerType = 'mail', size, }: UpsellModalProps) => { const handleUpgrade = () => { + onUpgrade?.(); modalProps.onClose(); }; -- 2.11.4.GIT