diff --git a/frontend/src/components/Dropdown.tsx b/frontend/src/components/Dropdown.tsx index 3091fba3..ebc8648f 100644 --- a/frontend/src/components/Dropdown.tsx +++ b/frontend/src/components/Dropdown.tsx @@ -53,7 +53,7 @@ function Dropdown({ darkBorderColor?: string; showEdit?: boolean; onEdit?: (value: { name: string; id: string; type: string }) => void; - showDelete?: boolean; + showDelete?: boolean | ((option: any) => boolean); onDelete?: (value: string) => void; placeholder?: string; placeholderTextColor?: string; @@ -173,8 +173,15 @@ function Dropdown({ )} {showDelete && onDelete && (