Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-19 17:12:15 +00:00
co-authored by renee-png
parent d5abd69f24
commit 7517828bfa
+2 -2
View File
@@ -573,9 +573,9 @@ function InvoiceDetail() {
</CardContent>
</Card>
{canEdit && isDraft && (
{canEdit && (
<Button variant="outline" className="w-full text-destructive hover:text-destructive" onClick={deleteInvoice}>
<Trash2 className="h-4 w-4 mr-2" /> Delete draft
<Trash2 className="h-4 w-4 mr-2" /> {isDraft ? "Delete draft" : "Delete invoice"}
</Button>
)}
</div>