Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update filter-list.tsx

Tim Wilsonf3ee9eb62904
diff --git a/packages/ui/src/filter/filter-list.tsx b/packages/ui/src/filter/filter-list.tsx
index d5f604decc..2400a79358 100644
--- a/packages/ui/src/filter/filter-list.tsx
+++ b/packages/ui/src/filter/filter-list.tsx
@@ -11,7 +11,7 @@ type FilterListProps = {
key: Filter["key"];
value: FilterOption["value"];
}[];
- onRemove: (key: string) => void;
+ onRemove: (key: string, value: FilterOption["value"]) => void;
onRemoveAll: () => void;
className?: string;
};
@@ -119,7 +119,7 @@ export function FilterList({
<button
type="button"
className="h-full rounded-r-md p-2 text-gray-500 ring-inset ring-gray-500 hover:bg-gray-100 hover:text-gray-800 focus:outline-none focus-visible:ring-1"
- onClick={() => onRemove(key)}
+ onClick={() => onRemove(key, value)}
>
<X className="h-3.5 w-3.5" />
</button>