fix(#2386): fix size popup iframe

keep-around/87c78c9d73943179f26bbafe8c20385ec61c221d
Andrei Dekterev 4 years ago
parent bcb0265f4b
commit 18a1d4df36
  1. 5
      src/features/BuyMatchPopup/components/BrazilPayment/index.tsx
  2. 2
      src/helpers/clientCountry/index.tsx

@ -2,9 +2,10 @@ import { useEffect, useState } from 'react'
import { Loader } from 'features/Loader'
import { useLexicsStore } from 'features/LexicsStore'
import { MatchPackage } from 'features/BuyMatchPopup/types'
import { isMobileDevice } from 'config/userAgent'
import { getBrazilPaymentUrl } from 'requests/getBrazilPaymentUrl'
import isNumber from 'lodash/isNumber'
@ -50,7 +51,7 @@ export const BrazilPayment = ({
return (
<ScModal isOpen={open} withCloseButton={false}>
{src && open ? (
<iframe title='BrazilPayment' src={src} height={600} width={400} />
<iframe title='BrazilPayment' src={src} height={600} width={isMobileDevice ? 350 : 800} />
) : (
<LoaderWrapper>
<Loader color='#515151' />

@ -1,6 +1,6 @@
export const clientCountry = () => {
const country = JSON.parse(
localStorage.getItem('oidc.user:https://auth.instat.tv:ott-web') || '',
localStorage.getItem('oidc.user:https://auth.instat.tv:ott-web') || 'oidc.user:https://test-auth.instat.tv:ott-web',
).profile.country_code
return country
}

Loading…
Cancel
Save