bills with attachment marked with green outline
This commit is contained in:
@@ -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>;
|
||||||
Reference in New Issue
Block a user