@@ -192,7 +192,13 @@ function ProInfoBlockDeviceLinked() {
192192 ) ;
193193}
194194
195- function ProInfoBlockWebsite ( { textElement } : { textElement : ReactNode } ) {
195+ function ProInfoBlockWebsite ( {
196+ textElement,
197+ titleType,
198+ } : {
199+ textElement : ReactNode ;
200+ titleType : 'via' | 'onThe' ;
201+ } ) {
196202 const { data } = useProBackendProDetailsLocal ( ) ;
197203 const storeOrPlatform = useStoreOrPlatformFromProvider ( data ) ;
198204
@@ -202,7 +208,7 @@ function ProInfoBlockWebsite({ textElement }: { textElement: ReactNode }) {
202208 textElement = {
203209 < ProInfoBlockText >
204210 < strong >
205- { tr ( ' viaStoreWebsite', {
211+ { tr ( titleType === 'via' ? ' viaStoreWebsite' : 'onPlatformWebsite ', {
206212 platform : storeOrPlatform ,
207213 } ) }
208214 </ strong >
@@ -305,6 +311,7 @@ function ProInfoBlockUpdate() {
305311 }
306312 />
307313 < ProInfoBlockWebsite
314+ titleType = "via"
308315 textElement = {
309316 < Localizer
310317 token = "viaStoreWebsiteDescription"
@@ -347,6 +354,7 @@ function ProInfoBlockRenew() {
347354 < >
348355 < ProInfoBlockDeviceLinked />
349356 < ProInfoBlockWebsite
357+ titleType = "onThe"
350358 textElement = {
351359 < Localizer
352360 token = "proAccessRenewPlatformStoreWebsite"
@@ -363,6 +371,8 @@ function ProInfoBlockRenew() {
363371
364372function ProInfoBlockCancel ( ) {
365373 const { data } = useProBackendProDetailsLocal ( ) ;
374+ const storeOrPlatform = useStoreOrPlatformFromProvider ( data ) ;
375+
366376 return (
367377 < ProInfoBlockLayout
368378 titleElement = { tr ( 'proCancellation' ) }
@@ -387,10 +397,11 @@ function ProInfoBlockCancel() {
387397 }
388398 />
389399 < ProInfoBlockWebsite
400+ titleType = "onThe"
390401 textElement = {
391402 < Localizer
392403 token = "cancelProPlatformStore"
393- platform_store = { data . providerConstants . platform }
404+ platform_store = { storeOrPlatform }
394405 platform_account = { data . providerConstants . platform_account }
395406 />
396407 }
@@ -472,6 +483,7 @@ function ProInfoBlockRefundIOS() {
472483 }
473484 />
474485 < ProInfoBlockWebsite
486+ titleType = "onThe"
475487 textElement = {
476488 < Localizer
477489 token = "requestRefundPlatformWebsite"
0 commit comments