Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions src/app/(mobile-ui)/withdraw/[country]/bank/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ export default function WithdrawBankPage() {
currency.path?.toLowerCase() === country.toLowerCase()
)?.currencyCode

// non-eur sepa countries that are currently experiencing issues
const isNonEuroSepaCountry = !!(
nonEuroCurrency &&
nonEuroCurrency !== 'EUR' &&
nonEuroCurrency !== 'USD' &&
nonEuroCurrency !== 'MXN'
)

useEffect(() => {
if (!amountToWithdraw) {
// If no amount, go back to main page
Expand Down Expand Up @@ -243,9 +251,27 @@ export default function WithdrawBankPage() {
<ExchangeRate accountType={bankAccount.type} nonEuroCurrency={nonEuroCurrency} />
<PaymentInfoRow hideBottomBorder label="Fee" value={`$ 0.00`} />
</Card>

{isNonEuroSepaCountry && (
<div className="rounded-sm border border-yellow-500 bg-yellow-50 p-4">
<div className="flex items-start gap-3">
<div className="mt-0.5 text-xl">⚠️</div>
<div className="flex-1">
<p className="text-sm font-semibold text-yellow-800">
Service Temporarily Unavailable
</p>
<p className="mt-1 text-xs text-yellow-700">
Withdrawals to {nonEuroCurrency} bank accounts are temporarily unavailable.
Please try again later.
</p>
</div>
</div>
</div>
)}

{error.showError ? (
<Button
disabled={isLoading}
disabled={isLoading || isNonEuroSepaCountry}
Comment thread
kushagrasarathe marked this conversation as resolved.
onClick={handleCreateAndInitiateOfframp}
loading={isLoading}
shadowSize="4"
Expand All @@ -262,10 +288,10 @@ export default function WithdrawBankPage() {
iconSize={12}
shadowSize="4"
onClick={handleCreateAndInitiateOfframp}
disabled={isLoading || !bankAccount}
disabled={isLoading || !bankAccount || isNonEuroSepaCountry}
className="w-full"
>
Withdraw
{isNonEuroSepaCountry ? 'Temporarily Unavailable' : 'Withdraw'}
</Button>
)}
{error.showError && <ErrorAlert description={error.errorMessage} />}
Expand Down
Loading