up
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-26 11:04:03 +03:30
parent eff7744f0b
commit d6a5697998
8 changed files with 65 additions and 49 deletions
@@ -9,7 +9,7 @@ import {
getItemLineTotal,
getItemSubTotal,
} from "../utils/invoiceItem";
import { Add, Trash } from "iconsax-react";
import { Trash } from "iconsax-react";
import { Link } from "react-router-dom";
import { Paths } from "@/config/Paths";
type Props = {
@@ -20,7 +20,6 @@ type Props = {
field: keyof CreatePreInvoiceItemType,
value: string | number | null,
) => void;
onAdd: () => void;
onRemove: () => void;
canRemove: boolean;
onConvertToOrder?: () => void;
@@ -31,7 +30,6 @@ const InvoiceItemRow: FC<Props> = ({
item,
index,
onChange,
onAdd,
onRemove,
canRemove,
onConvertToOrder,
@@ -170,14 +168,6 @@ const InvoiceItemRow: FC<Props> = ({
</div>
<div className="flex gap-2 items-end h-10">
<button
type="button"
onClick={onAdd}
className="w-10 h-10 rounded-full bg-primary flex items-center justify-center flex-shrink-0 hover:opacity-90 transition-opacity"
aria-label="افزودن آیتم"
>
<Add size={20} color="black" />
</button>
{canRemove && (
<button
type="button"