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.

Narrow the groupBy option of useEarningsPageHref to linkId

Rafi1203efcfac27
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/overview/use-earnings-page-href.ts b/apps/web/app/(ee)/partners.dub.co/(dashboard)/overview/use-earnings-page-href.ts
index 16c04433b9..7c2258c289 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/overview/use-earnings-page-href.ts
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/overview/use-earnings-page-href.ts
@@ -1,9 +1,7 @@
import { useRouterStuff } from "@dub/ui";
// the All programs Earnings page, with the date range of the Overview page
-export function useEarningsPageHref(
- params: { groupBy?: "linkId" | "programId" } = {},
-) {
+export function useEarningsPageHref(params: { groupBy?: "linkId" } = {}) {
const { getQueryString } = useRouterStuff();
return `/earnings${getQueryString(params, {