mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
@@ -263,10 +263,6 @@ export default function TopUpModal({ method, onClose, initialAmountRubles }: Top
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleOpenUrl = () => {
|
|
||||||
if (!paymentUrl) return
|
|
||||||
window.open(paymentUrl, '_blank', 'noopener,noreferrer')
|
|
||||||
}
|
|
||||||
|
|
||||||
// Auto-focus input - works on mobile in Telegram WebApp
|
// Auto-focus input - works on mobile in Telegram WebApp
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -437,15 +433,11 @@ export default function TopUpModal({ method, onClose, initialAmountRubles }: Top
|
|||||||
{t('balance.clickToOpenPayment', 'Нажмите кнопку ниже, чтобы открыть страницу оплаты в новой вкладке')}
|
{t('balance.clickToOpenPayment', 'Нажмите кнопку ниже, чтобы открыть страницу оплаты в новой вкладке')}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{/* Main open button */}
|
{/* Main open button - NO preventDefault, let <a> work natively for iOS Safari */}
|
||||||
<a
|
<a
|
||||||
href={paymentUrl}
|
href={paymentUrl}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
onClick={(e) => {
|
|
||||||
e.preventDefault()
|
|
||||||
handleOpenUrl()
|
|
||||||
}}
|
|
||||||
className="flex items-center justify-center gap-2 w-full h-12 rounded-xl bg-success-500 text-white font-bold hover:bg-success-400 active:bg-success-600 transition-colors"
|
className="flex items-center justify-center gap-2 w-full h-12 rounded-xl bg-success-500 text-white font-bold hover:bg-success-400 active:bg-success-600 transition-colors"
|
||||||
>
|
>
|
||||||
<ExternalLinkIcon />
|
<ExternalLinkIcon />
|
||||||
|
|||||||
Reference in New Issue
Block a user