@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user