import React, { useState, useEffect } from 'react'; import axios from 'axios'; import ProgressBox from './ConfirmBox'; import ConfirmBox from './ConfirmBox'; const BASE_URL = "http://localhost:8000/api"; const AccountSelectionModal = ({ show, onClose, onConfirm, accounts }) => { const [selectedAccount, setSelectedAccount] = useState(''); const [, setMessage] = 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} | TR {withdrawal.accountNumber} | {withdrawal.targetAccountName} | TR {withdrawal.targetAccountNumber} | {new Date(withdrawal.transactionDate).toLocaleString("tr-TR")} | {withdrawal.resultDate && new Date(withdrawal.resultDate).toLocaleString("tr-TR")} | {users[withdrawal.userID] || 'Seçilmedi'} | {withdrawal.withdrawalStatus} |
{withdrawal.withdrawalStatus === 'Beklemede' && (
<>
{!withdrawal.userID && (
)}
{withdrawal.userID && (
{withdrawal.userID === currentUser?.id ? (
<>
>
) : (
)}
)}
>
)}
|