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.

includes over has

Steven Teyd490d60fdad1
diff --git a/app/ui/home/background/index.tsx b/app/ui/home/background/index.tsx
index b330c90ef2..291ce269ac 100644
--- a/app/ui/home/background/index.tsx
+++ b/app/ui/home/background/index.tsx
@@ -12,7 +12,7 @@ export default function Background() {
// this is for /welcome which is still on /pages router
}
- return !segment || SHOW_BACKGROUND_SEGMENTS.has(segment) ? (
+ return !segment || SHOW_BACKGROUND_SEGMENTS.includes(segment) ? (
<div className={styles.main}>
<div className={styles.content} />
</div>
diff --git a/app/ui/home/nav.tsx b/app/ui/home/nav.tsx
index b123a5c9bb..34ce3d4c39 100644
--- a/app/ui/home/nav.tsx
+++ b/app/ui/home/nav.tsx
@@ -50,7 +50,7 @@ export default function Nav() {
className={cn(`sticky inset-x-0 top-0 z-30 w-full transition-all`, {
"border-b border-gray-200 bg-white/75 backdrop-blur-lg": scrolled,
"border-b border-gray-200 bg-white":
- selectedLayout && !SHOW_BACKGROUND_SEGMENTS.has(selectedLayout),
+ selectedLayout && !SHOW_BACKGROUND_SEGMENTS.includes(selectedLayout),
})}
>
<MaxWidthWrapper
diff --git a/lib/constants/index.ts b/lib/constants/index.ts
index 6b90052226..fc2ec09235 100644
--- a/lib/constants/index.ts
+++ b/lib/constants/index.ts
@@ -117,7 +117,7 @@ export const DUB_LOGO = "https://d2vwwcvoksz7ty.cloudfront.net/logo.png";
export const DUB_THUMBNAIL =
"https://d2vwwcvoksz7ty.cloudfront.net/thumbnail.png";
-export const SHOW_BACKGROUND_SEGMENTS = new Set([
+export const SHOW_BACKGROUND_SEGMENTS = [
"tools",
"pricing",
"help",
@@ -128,7 +128,7 @@ export const SHOW_BACKGROUND_SEGMENTS = new Set([
"login",
"register",
"auth",
-]);
+];
export const allTools = ["metatags", "inspector"];