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.

fix separatorAfter

Steven Tey32ac7db6f58d
diff --git a/apps/web/ui/analytics/toggle.tsx b/apps/web/ui/analytics/toggle.tsx
index f82770493a..863e1cb99c 100644
--- a/apps/web/ui/analytics/toggle.tsx
+++ b/apps/web/ui/analytics/toggle.tsx
@@ -431,6 +431,7 @@ export default function Toggle({
key: "root",
icon: Sliders,
label: "Link type",
+ separatorAfter: true,
options: [
{
value: true,
@@ -572,7 +573,7 @@ export default function Toggle({
icon: trigger === "qr" ? QRCode : CursorRays,
right: nFormatter(count, { full: true }),
})) ?? null,
- separatorAfter: !dashboardProps && !partnerPage,
+ separatorAfter: true,
},
{
key: "referer",
@@ -619,24 +620,22 @@ export default function Toggle({
right: nFormatter(count, { full: true }),
})) ?? null,
},
- ...(partnerPage
- ? []
- : UTM_PARAMETERS.filter(({ key }) => key !== "ref").map(
- ({ key, label, icon: Icon }) => ({
- key,
- icon: Icon,
- label: `UTM ${label}`,
- getOptionIcon: (value) => (
- <Icon display={value} className="h-4 w-4" />
- ),
- options:
- utmData[key]?.map((dt) => ({
- value: dt[key],
- label: dt[key],
- right: nFormatter(dt.count, { full: true }),
- })) ?? null,
- }),
- ) ?? []),
+ ...UTM_PARAMETERS.filter(({ key }) => key !== "ref").map(
+ ({ key, label, icon: Icon }) => ({
+ key,
+ icon: Icon,
+ label: `UTM ${label}`,
+ getOptionIcon: (value) => (
+ <Icon display={value} className="h-4 w-4" />
+ ),
+ options:
+ utmData[key]?.map((dt) => ({
+ value: dt[key],
+ label: dt[key],
+ right: nFormatter(dt.count, { full: true }),
+ })) ?? null,
+ }),
+ ),
],
[
dashboardProps,