@@ -94,56 +94,58 @@ export default async function InterstitialOfferPage({
9494
9595 const { ftlId, fallbackText } = getKeepCurrentSubscriptionFtlIds ( currentInterval ) ;
9696 const keepCurrentSubscriptionButtonText = l10n . getString ( ftlId , fallbackText ) ;
97+ const searchParamsObj = new URLSearchParams ( searchParams ) ;
98+ searchParamsObj . append ( 'entrypoint' , 'subscription-management' ) ;
9799
98100 return (
99101 < section
100102 className = "flex justify-center min-h-[calc(100vh_-_4rem)] tablet:items-center tablet:min-h-[calc(100vh_-_5rem)]"
101103 >
102- < div className = "w-full max-w-[480px] flex flex-col justify-center items-center p-10 tablet:bg-white tablet:rounded-xl tablet:border tablet:border-grey-200 tablet:shadow-[0_0_16px_0_rgba(0,0,0,0.08)]" >
103- < div className = "w-full flex flex-col items-center gap-6 text-center" >
104- < Image
105- src = { webIcon }
106- alt = { productName }
107- height = { 64 }
108- width = { 64 }
109- />
110- < h1 className = "font-bold self-stretch text-center font-header text-xl leading-8 " >
111- { modalHeading1 }
112- </ h1 >
113- </ div >
114- < p className = "w-full self-stretch leading-7 text-lg text-grey-900" >
115- { modalMessage &&
116- modalMessage . map ( ( line , i ) => (
117- < p className = "my-2" key = { i } >
118- { line }
119- </ p >
120- ) ) }
121- </ p >
104+ < div className = "w-full max-w-[480px] flex flex-col justify-center items-center p-10 tablet:bg-white tablet:rounded-xl tablet:border tablet:border-grey-200 tablet:shadow-[0_0_16px_0_rgba(0,0,0,0.08)]" >
105+ < div className = "w-full flex flex-col items-center gap-6 text-center" >
106+ < Image
107+ src = { webIcon }
108+ alt = { productName }
109+ height = { 64 }
110+ width = { 64 }
111+ />
112+ < h1 className = "font-bold self-stretch text-center font-header text-xl leading-8 " >
113+ { modalHeading1 }
114+ </ h1 >
115+ </ div >
116+ < p className = "w-full self-stretch leading-7 text-lg text-grey-900" >
117+ { modalMessage &&
118+ modalMessage . map ( ( line , i ) => (
119+ < p className = "my-2" key = { i } >
120+ { line }
121+ </ p >
122+ ) ) }
123+ </ p >
122124
123- < div className = "w-full flex flex-col gap-3 mt-12" >
124- < Link
125- className = "border box-border font-header h-14 items-center justify-center rounded-md text-white text-center font-bold py-4 px-6 bg-blue-500 hover:bg-blue-700 flex w-full"
126- href = { upgradeButtonUrl }
127- >
128- { upgradeButtonLabel }
129- </ Link >
130- < Link
131- className = "border box-border font-header h-14 items-center justify-center rounded-md text-center font-bold py-4 px-6 bg-grey-10 border-grey-200 hover:bg-grey-50 flex w-full"
132- href = { `/${ locale } /subscriptions/landing` }
133- >
134- < span > { keepCurrentSubscriptionButtonText } </ span >
135- </ Link >
136- < Link
137- className = "border box-border font-header h-14 items-center justify-center rounded-md text-center font-bold py-4 px-6 bg-grey-10 border-grey-200 hover:bg-grey-50 flex w-full"
138- href = { `/${ locale } /subscriptions/${ subscriptionId } /cancel` }
139- >
140- < span > { l10n . getString (
141- 'interstitial-offer-button-cancel-subscription' ,
142- 'Continue to cancel'
143- ) } </ span >
144- </ Link >
145- </ div >
125+ < div className = "w-full flex flex-col gap-3 mt-12" >
126+ < Link
127+ className = "border box-border font-header h-14 items-center justify-center rounded-md text-white text-center font-bold py-4 px-6 bg-blue-500 hover:bg-blue-700 flex w-full"
128+ href = { `${ upgradeButtonUrl } ?${ searchParamsObj . toString ( ) } ` }
129+ >
130+ { upgradeButtonLabel }
131+ </ Link >
132+ < Link
133+ className = "border box-border font-header h-14 items-center justify-center rounded-md text-center font-bold py-4 px-6 bg-grey-10 border-grey-200 hover:bg-grey-50 flex w-full"
134+ href = { `/${ locale } /subscriptions/landing` }
135+ >
136+ < span > { keepCurrentSubscriptionButtonText } </ span >
137+ </ Link >
138+ < Link
139+ className = "border box-border font-header h-14 items-center justify-center rounded-md text-center font-bold py-4 px-6 bg-grey-10 border-grey-200 hover:bg-grey-50 flex w-full"
140+ href = { `/${ locale } /subscriptions/${ subscriptionId } /cancel` }
141+ >
142+ < span > { l10n . getString (
143+ 'interstitial-offer-button-cancel-subscription' ,
144+ 'Continue to cancel'
145+ ) } </ span >
146+ </ Link >
146147 </ div >
148+ </ div >
147149 </ section >
148150 ) ;
149151}
0 commit comments