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 use-partner-network-filters.tsx

Kiran K7a2d527e2545
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/network/use-partner-network-filters.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/network/use-partner-network-filters.tsx
index d2a7837d4f..8ff6ee938d 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/network/use-partner-network-filters.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/network/use-partner-network-filters.tsx
@@ -1,11 +1,6 @@
-import {
- industryInterests,
- preferredEarningStructures,
- salesChannels,
-} from "@/lib/partners/partner-profile";
import useNetworkPartnersCount from "@/lib/swr/use-network-partners-count";
import { useRouterStuff } from "@dub/ui";
-import { FlagWavy, Heart, InvoiceDollar, MoneyBills2 } from "@dub/ui/icons";
+import { FlagWavy } from "@dub/ui/icons";
import { COUNTRIES, nFormatter } from "@dub/utils";
import { useCallback, useMemo } from "react";
@@ -53,57 +48,11 @@ export function usePartnerNetworkFilters({
right: nFormatter(_count, { full: true }),
})) ?? [],
},
- {
- key: "industryInterests",
- icon: Heart,
- label: "Industry interest",
- multiple: true,
- options:
- industryInterests?.map(({ id, icon: Icon, label }) => ({
- value: id,
- label,
- icon: <Icon className="size-4" />,
- })) ?? [],
- },
- {
- key: "salesChannels",
- icon: InvoiceDollar,
- label: "Sales channel",
- multiple: true,
- options:
- salesChannels?.map(({ id, label }) => ({
- value: id,
- label,
- })) ?? [],
- },
- {
- key: "preferredEarningStructures",
- icon: MoneyBills2,
- label: "Preferred earning structure",
- multiple: true,
- options:
- preferredEarningStructures?.map(({ id, label }) => ({
- value: id,
- label,
- })) ?? [],
- },
],
[countriesCount],
);
- const multiFilters = useMemo(
- () => ({
- industryInterests:
- searchParamsObj.industryInterests?.split(",")?.filter(Boolean) ?? [],
- salesChannels:
- searchParamsObj.salesChannels?.split(",")?.filter(Boolean) ?? [],
- preferredEarningStructures:
- searchParamsObj.preferredEarningStructures
- ?.split(",")
- ?.filter(Boolean) ?? [],
- }),
- [searchParamsObj],
- );
+ const multiFilters = useMemo(() => ({}), []);
const activeFilters = useMemo(() => {
const { country } = searchParamsObj;
@@ -156,7 +105,7 @@ export function usePartnerNetworkFilters({
const onRemoveAll = useCallback(
() =>
queryParams({
- del: [...Object.keys(multiFilters), "country", "starred"],
+ del: ["country", "starred"],
}),
[queryParams],
);