Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-19 16:03:31 +00:00
co-authored by renee-png
parent ea2d189380
commit c6567de101
+19
View File
@@ -349,6 +349,25 @@ export function HeaderTimer() {
</div>
</PopoverContent>
</Popover>
<NewFeeItemDialog
open={showNewFee}
onOpenChange={setShowNewFee}
defaultDescription={timer.description}
defaultAmount={effectiveRate || undefined}
defaultPricingType={isFlatFee ? "flat" : "hourly"}
defaultBillable={billable}
onCreated={(item) => {
setFeeItems((prev) =>
[...prev, { id: item.id, name: item.name, description: item.description, amount: Number(item.amount), pricing_type: item.pricing_type }]
.sort((a, b) => a.name.localeCompare(b.name)),
);
setFeeItemId(item.id);
if (!timer.description.trim()) {
setDescription(item.description?.trim() || item.name);
}
}}
/>
</>
);
}