diff --git a/src/components/quotes/LocationListPanel.tsx b/src/components/quotes/LocationListPanel.tsx index 223c35a7..f4d963ff 100644 --- a/src/components/quotes/LocationListPanel.tsx +++ b/src/components/quotes/LocationListPanel.tsx @@ -9,7 +9,7 @@ "use client"; import { useState, useCallback } from "react"; -import { Plus, Upload, Download, Pencil, Trash2 } from "lucide-react"; +import { Plus, Upload, Download, Pencil, Trash2, Copy } from "lucide-react"; import { toast } from "sonner"; import { Button } from "../ui/button"; @@ -77,6 +77,7 @@ interface LocationListPanelProps { onSelectLocation: (id: string) => void; onAddLocation: (location: Omit) => Promise; onDeleteLocation: (id: string) => void; + onCloneLocation?: (id: string) => void; onUpdateLocation: (locationId: string, updates: Partial) => void; onExcelUpload: (locations: Omit[]) => void; finishedGoods: FinishedGoods[]; @@ -94,6 +95,7 @@ export function LocationListPanel({ onSelectLocation, onAddLocation, onDeleteLocation, + onCloneLocation, onUpdateLocation, onExcelUpload, finishedGoods, @@ -523,6 +525,16 @@ export function LocationListPanel({ > +