Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-17 02:10:02 +00:00
co-authored by renee-png
parent 982f17fb82
commit 357ba9ef3d
+10 -3
View File
@@ -113,9 +113,16 @@ export function CaseTimeTab({ caseRecord, onInvoice }: CaseTimeTabProps) {
<Stat label="Billed total" value={formatCurrency(totals.billable)} />
<Stat label="Unbilled" value={formatCurrency(totals.unbilled)} />
</div>
<Button onClick={() => setShowForm((s) => !s)}>
<Plus className="h-4 w-4 mr-2" /> {showForm ? "Cancel" : "Log time"}
</Button>
<div className="flex flex-wrap gap-2">
{totals.unbilled > 0 && onInvoice && (
<Button variant="outline" onClick={onInvoice}>
<FilePlus className="h-4 w-4 mr-2" /> Invoice case ({formatCurrency(totals.unbilled)})
</Button>
)}
<Button onClick={() => setShowForm((s) => !s)}>
<Plus className="h-4 w-4 mr-2" /> {showForm ? "Cancel" : "Log time"}
</Button>
</div>
</div>
{showForm && (