bills with attachment marked with green outline

This commit is contained in:
2024-01-17 15:55:33 +01:00
parent e0c20374e1
commit bdf9c10303

View File

@@ -7,7 +7,7 @@ export interface BillBadgeProps {
bill: Bill bill: Bill
}; };
export const BillBadge:FC<BillBadgeProps> = ({ locationId, bill: { _id: billId, name, paid }}) => export const BillBadge:FC<BillBadgeProps> = ({ locationId, bill: { _id: billId, name, paid, attachment }}) =>
<Link href={`/bill/${locationId}-${billId}/edit`} className={`badge badge-lg ${paid} ${paid?"badge-success":" badge-outline"} cursor-pointer`}> <Link href={`/bill/${locationId}-${billId}/edit`} className={`badge badge-lg ${paid?"badge-success":" badge-outline"} ${ !paid && !!attachment ? "btn-outline btn-success" : "" } cursor-pointer`}>
{name} {name}
</Link>; </Link>;