refactoring: changed path to bills

This commit is contained in:
2024-01-05 13:56:38 +01:00
parent 86135199a9
commit 73029fb28a
2 changed files with 2 additions and 2 deletions

View File

@@ -8,6 +8,6 @@ export interface BillBadgeProps {
};
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}
</Link>;

View File

@@ -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-body">
<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" />
</a>