|
|
|
|
@ -6,12 +6,9 @@ import { useBrazilPayment } from './hooks' |
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
LoaderWrapper, |
|
|
|
|
ScButton, |
|
|
|
|
ScModal, |
|
|
|
|
} from './styled' |
|
|
|
|
|
|
|
|
|
import { Button } from '../../styled' |
|
|
|
|
|
|
|
|
|
export type Props = { |
|
|
|
|
match: Match, |
|
|
|
|
open: boolean, |
|
|
|
|
@ -28,7 +25,6 @@ export const BrazilPayment = ({ |
|
|
|
|
const { |
|
|
|
|
closePopup, |
|
|
|
|
error, |
|
|
|
|
matchLink, |
|
|
|
|
src, |
|
|
|
|
} = useBrazilPayment({ |
|
|
|
|
match, |
|
|
|
|
@ -40,16 +36,7 @@ export const BrazilPayment = ({ |
|
|
|
|
return ( |
|
|
|
|
<ScModal isOpen={open} withCloseButton close={closePopup}> |
|
|
|
|
{src && open ? ( |
|
|
|
|
<> |
|
|
|
|
<iframe title='BrazilPayment' src={src} height={600} width='100%' /> |
|
|
|
|
<ScButton> |
|
|
|
|
<Button> |
|
|
|
|
<a href={matchLink} style={{ color: 'white' }}> |
|
|
|
|
<T9n t='watch_match' /> |
|
|
|
|
</a> |
|
|
|
|
</Button> |
|
|
|
|
</ScButton> |
|
|
|
|
</> |
|
|
|
|
<iframe title='BrazilPayment' src={src} height={600} width='100%' /> |
|
|
|
|
) : ( |
|
|
|
|
<> |
|
|
|
|
{error ? ( |
|
|
|
|
|