The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
edit packages
Steven Tey90e0d29bd282
diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex b6232f41f6..84fdb73ced 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -1,7 +1,7 @@{"name": "@dub/ui","description": "UI components for Dub.co",- "version": "0.0.18",+ "version": "0.0.19","sideEffects": false,"main": "./dist/index.js","module": "./dist/index.mjs",diff --git a/packages/ui/src/background.tsx b/packages/ui/src/background.tsxindex d9afa8fe5a..608469a58a 100644--- a/packages/ui/src/background.tsx+++ b/packages/ui/src/background.tsx@@ -1,23 +1,11 @@-"use client";--import { SHOW_BACKGROUND_SEGMENTS } from "@dub/utils";-import { useSelectedLayoutSegment } from "next/navigation";-export function Background() {- let segment;- try {- segment = useSelectedLayoutSegment();- } catch (e) {- // this is for /welcome which is still on /pages router- }-- return !segment || SHOW_BACKGROUND_SEGMENTS.includes(segment) ? (+ return (<div style={styles.backgroundMain}><div style={styles.backgroundMainBefore} /><div style={styles.backgroundMainAfter} /><div style={styles.backgroundContent} /></div>- ) : null;+ );}const styles: { [key: string]: React.CSSProperties } = {diff --git a/packages/utils/package.json b/packages/utils/package.jsonindex 594447b5c5..ff48c81e53 100644--- a/packages/utils/package.json+++ b/packages/utils/package.json@@ -1,7 +1,7 @@{"name": "@dub/utils","description": "Utility functions and constants for Dub.co",- "version": "0.0.7",+ "version": "0.0.10","sideEffects": false,"main": "./dist/index.js","module": "./dist/index.mjs",diff --git a/packages/utils/src/constants/index.ts b/packages/utils/src/constants/index.tsindex 8b792f2606..b97d39d91a 100644--- a/packages/utils/src/constants/index.ts+++ b/packages/utils/src/constants/index.ts@@ -108,6 +108,7 @@ export const SHOW_BACKGROUND_SEGMENTS = ["pricing","help","features",+ "compare","customers","blog","(blog-post)",