Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 01:27:59 +00:00
co-authored by renee-png
parent b2d6d2c537
commit 345b58a626
+13
View File
@@ -53,6 +53,19 @@ export function CaseExpensesTab({ caseId }: { caseId: string }) {
useEffect(() => { load(); }, [caseId]);
useEffect(() => {
(async () => {
const { data } = await supabase
.from("fee_schedule_items")
.select("id, name, description, amount, billable")
.eq("category", "expense")
.eq("active", true)
.order("sort_order")
.order("name");
setFees((data ?? []) as FeeItem[]);
})();
}, []);
const submit = async (e: React.FormEvent) => {
e.preventDefault();
const amount = parseFloat(form.amount);