- {tx.transaction_type === 'DEVOLUCION' ? : }
+ {tx.transaction_type === 'DEPOSITO' ? : tx.transaction_type === 'DEVOLUCION' ? : }
{tx.merchant}
@@ -307,9 +308,9 @@ export default function Dashboard() {
- {tx.transaction_type === 'DEVOLUCION' ? '+' : '-'}{formatAmount(tx.amount, tx.currency)}
+ {tx.transaction_type === 'COMPRA' ? '-' : '+'}{formatAmount(tx.amount, tx.currency)}
))}
diff --git a/frontend/src/pages/Salarios.tsx b/frontend/src/pages/Salarios.tsx
new file mode 100644
index 0000000..d9be189
--- /dev/null
+++ b/frontend/src/pages/Salarios.tsx
@@ -0,0 +1,163 @@
+import { useEffect, useMemo, useState } from 'react';
+import { type ColumnDef } from '@tanstack/react-table';
+import { Landmark, RefreshCw, Hash, CalendarDays, Banknote } from 'lucide-react';
+
+import { type Transaction, type SalariosSummary, getSalarios, getSalariosSummary } from '../api';
+import { formatAmount, formatDate } from '@/lib/format';
+import { DataTable } from '@/components/ui/data-table';
+import { DataTableColumnHeader } from '@/components/ui/data-table-column-header';
+import { Card, CardContent } from '@/components/ui/card';
+import { Button } from '@/components/ui/button';
+import { Badge } from '@/components/ui/badge';
+
+export default function Salarios() {
+ const [deposits, setDeposits] = useState