import React, { useState, useEffect } from 'react'; import axios from 'axios'; import ProgressBox from './ConfirmBox'; import ConfirmBox from './ConfirmBox'; const BASE_URL = "http://localhost:8000"; // Account Selection Modal Component const AccountSelectionModal = ({ show, onClose, onConfirm, accounts }) => { const [selectedAccount, setSelectedAccount] = useState(''); if (!show) return null; return (
Hata!
{error}
ID | Site | Adı Soyadı | Miktar | Kullanıcı Adı | Yöntem | Kaynak Hesap | Kaynak No | Hedef Hesap | Hedef No | İşlem Tarihi | Sonuç Tarihi | İşlemi Yapan | Durum | İşlemler |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{withdrawal.id} | {refs[withdrawal.refId] || '-'} | {withdrawal.fullName} | {withdrawal.balance.toLocaleString()} ₺ | {withdrawal.username} | {withdrawal.method} | {withdrawal.accountName} | {withdrawal.accountNumber} | {withdrawal.targetAccountName} | {withdrawal.targetAccountNumber} | {new Date(withdrawal.transactionDate).toLocaleString("tr-TR")} | {(withdrawal.withdrawalStatus === 'Onaylandı' || withdrawal.withdrawalStatus === 'İptal') && ( withdrawal.resultDate && new Date(withdrawal.resultDate).toLocaleString("tr-TR") )} | {users[withdrawal.userID] || 'Seçilmedi'} | {withdrawal.withdrawalStatus} |
{withdrawal.withdrawalStatus === 'Beklemede' && (
<>
{!withdrawal.userID && (
)}
{withdrawal.userID && (
|