Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
2c212337ad
commit
429c659f05
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user