refactoring: changed path to bills
This commit is contained in:
@@ -8,6 +8,6 @@ export interface BillBadgeProps {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const BillBadge:FC<BillBadgeProps> = ({ locationId, bill: { _id: billId, name, paid }}) =>
|
export const BillBadge:FC<BillBadgeProps> = ({ locationId, bill: { _id: billId, name, paid }}) =>
|
||||||
<Link href={`/bills/${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} ${paid?"badge-success":" badge-outline"} cursor-pointer`}>
|
||||||
{name}
|
{name}
|
||||||
</Link>;
|
</Link>;
|
||||||
@@ -40,7 +40,7 @@ export const BillEditForm:FC<BillEditFormProps> = ({ locationID, bill: { id, nam
|
|||||||
<div className="card card-compact card-bordered max-w-sm bg-base-100 shadow-s my-1">
|
<div className="card card-compact card-bordered max-w-sm bg-base-100 shadow-s my-1">
|
||||||
<div className="card-body">
|
<div className="card-body">
|
||||||
<form action={ dispatch }>
|
<form action={ dispatch }>
|
||||||
<a href={`/bills/${locationID}-${id}/delete/`}>
|
<a href={`/bill/${locationID}-${id}/delete/`}>
|
||||||
<TrashIcon className="h-[1em] w-[1em] absolute cursor-pointer text-error bottom-5 right-4 text-2xl" />
|
<TrashIcon className="h-[1em] w-[1em] absolute cursor-pointer text-error bottom-5 right-4 text-2xl" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user