From 865467d82f51b054b2e74921d0870f2695297b5b Mon Sep 17 00:00:00 2001 From: guilhermer Date: Thu, 24 Oct 2024 15:15:59 +0200 Subject: [PATCH] payconic changes --- .changeset/shaggy-poets-eat.md | 5 +++++ packages/lib/src/components/BcmcMobile/BcmcMobile.ts | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changeset/shaggy-poets-eat.md diff --git a/.changeset/shaggy-poets-eat.md b/.changeset/shaggy-poets-eat.md new file mode 100644 index 0000000000..7f408215bd --- /dev/null +++ b/.changeset/shaggy-poets-eat.md @@ -0,0 +1,5 @@ +--- +'@adyen/adyen-web': patch +--- + +Payconic - Adjusted QR code message and removed unused button label. diff --git a/packages/lib/src/components/BcmcMobile/BcmcMobile.ts b/packages/lib/src/components/BcmcMobile/BcmcMobile.ts index c240756d48..178ed233d5 100644 --- a/packages/lib/src/components/BcmcMobile/BcmcMobile.ts +++ b/packages/lib/src/components/BcmcMobile/BcmcMobile.ts @@ -7,12 +7,10 @@ class BCMCMobileElement extends QRLoaderContainer { public static txVariants = [TxVariants.bcmc_mobile, TxVariants.bcmc_mobile_QR]; formatProps(props) { - const isMobile = window.matchMedia('(max-width: 768px)').matches && /Android|iPhone|iPod/.test(navigator.userAgent); - return { delay: STATUS_INTERVAL, countdownTime: COUNTDOWN_MINUTES, - buttonLabel: isMobile ? 'openApp' : 'generateQRCode', + timeToPay: 'payme.timeToPay', ...super.formatProps(props) }; }