exchange page

This commit is contained in:
Boki 2025-06-18 07:20:55 -04:00
parent 263e9513b7
commit 344478c577
4 changed files with 22 additions and 15 deletions

View file

@ -18,6 +18,8 @@ export function ExchangesTable() {
createProviderMapping,
refetch
} = useExchanges();
console.log('ExchangesTable render:', { exchanges, loading, error });
const [editingCell, setEditingCell] = useState<{ id: string; field: string } | null>(null);
const [editValue, setEditValue] = useState('');
const [addProviderDialog, setAddProviderDialog] = useState<{
@ -381,6 +383,13 @@ export function ExchangesTable() {
);
};
console.log('About to render DataTable with:', {
dataLength: (exchanges || []).length,
columnsLength: columns.length,
loading,
error
});
return (
<>
<div className="space-y-0">
@ -388,6 +397,7 @@ export function ExchangesTable() {
data={exchanges || []}
columns={columns}
loading={loading}
height={600}
className="rounded-lg border border-border"
/>