Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-05-14 23:17:30 +00:00
co-authored by renee-png
parent 2c212337ad
commit 429c659f05
+19 -3
View File
@@ -152,12 +152,28 @@ function TrustLedgerPage() {
title="Trust accounting"
description="All client trust balances and ledger activity."
actions={
<Button variant="outline" size="sm" onClick={exportCsv}>
<Download className="h-3.5 w-3.5 mr-1.5" /> Export CSV
</Button>
<div className="flex gap-2">
<Button variant="outline" size="sm" onClick={() => setEntryDialog("deposit")}>
<ArrowDownToLine className="h-3.5 w-3.5 mr-1.5" /> Record deposit
</Button>
<Button variant="outline" size="sm" onClick={() => setEntryDialog("withdrawal")}>
<ArrowUpFromLine className="h-3.5 w-3.5 mr-1.5" /> Record withdrawal
</Button>
<Button variant="outline" size="sm" onClick={exportCsv}>
<Download className="h-3.5 w-3.5 mr-1.5" /> Export CSV
</Button>
</div>
}
/>
<RecordEntryDialog
open={!!entryDialog}
type={entryDialog ?? "deposit"}
clients={Array.from(clients.values())}
onClose={() => setEntryDialog(null)}
onSaved={(e) => { setEntries((p) => [e, ...p]); setEntryDialog(null); }}
/>
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
<Card>
<CardContent className="p-4">