The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
small tweaks
Steven Tey7bdec4a5198d
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/analytics/client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/analytics/client.tsxindex b583dfdf46..232a11e678 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/analytics/client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/analytics/client.tsx@@ -5,15 +5,22 @@ import LayoutLoader from "@/ui/layout/layout-loader";import WorkspaceExceededClicks from "@/ui/workspaces/workspace-exceeded-clicks";import { ReactNode } from "react";-export default function AnalyticsClient({ children }: { children: ReactNode }) {- const { exceededClicks, loading } = useWorkspace();- if (exceededClicks) {- return <WorkspaceExceededClicks />;- }+export default function AnalyticsClient({+ children,+ eventsPage,+}: {+ children: ReactNode;+ eventsPage?: boolean;+}) {+ const { exceededClicks, loading, plan } = useWorkspace();if (loading) {return <LayoutLoader />;}+ if (exceededClicks && !(plan === "pro" && eventsPage)) {+ return <WorkspaceExceededClicks />;+ }+return children;}diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/events/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/events/page.tsxindex 2717faa9d4..dca4a4de93 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/events/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/events/page.tsx@@ -9,7 +9,7 @@ export default function WorkspaceAnalyticsEvents() {return (<Suspense fallback={<LayoutLoader />}><PageContent title="Events">- <AnalyticsClient>+ <AnalyticsClient eventsPage><EventsProvider><Events /></EventsProvider>diff --git a/apps/web/ui/shared/new-background.tsx b/apps/web/ui/shared/new-background.tsxindex a04eddd90f..50374d6d23 100644--- a/apps/web/ui/shared/new-background.tsx+++ b/apps/web/ui/shared/new-background.tsx@@ -18,7 +18,7 @@ export function NewBackground(props: { showAnimation?: boolean }) {<divclassName={cn("absolute inset-0 overflow-hidden bg-white transition-opacity duration-300",- showAnimation ? (isLoaded ? "opacity-100" : "opacity-0") : "opacity-40",+ showAnimation ? (isLoaded ? "opacity-100" : "opacity-0") : "opacity-60",)}><BackgroundGradient className="opacity-15" />