The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fixed stats modal
Steven Tey298f1a52d6d9
diff --git a/app/dub.sh/layout.tsx b/app/dub.sh/layout.tsxindex ff68273543..38a5f67095 100644--- a/app/dub.sh/layout.tsx+++ b/app/dub.sh/layout.tsx@@ -1,14 +1,11 @@import Nav from "#/ui/home/nav";import Footer from "#/ui/home/footer";-const excludedSegments = new Set(["stats", "__DEFAULT__"]);-export default function MarketingLayout(props) {return (<div className="flex min-h-screen flex-col justify-between">{/* Only show stats modal if not on the /stats page */}- {!excludedSegments.has(props.children.props.childProp.segment) &&- props.modal}+ {props.children.props.childProp.segment !== "stats" && props.modal}<Nav />{props.children}<Footer />