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 providers

Steven Teyef9e0d22980b
diff --git a/apps/web/app/app.dub.co/(dashboard)/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/layout.tsx
index 764855ec00..80ab94d071 100644
--- a/apps/web/app/app.dub.co/(dashboard)/layout.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/layout.tsx
@@ -8,48 +8,51 @@ import UserDropdown from "@/ui/layout/user-dropdown";
import ProjectSelect from "@/ui/layout/project-select";
import NavTabs from "@/ui/layout/nav-tabs";
import UpgradeBanner from "@/ui/layout/upgrade-banner";
+import Providers from "./providers";
export const dynamic = "force-static";
export const metadata = constructMetadata();
export default function Layout({ children }: { children: ReactNode }) {
return (
- <div className="min-h-screen w-full bg-gray-50">
- <div className="sticky left-0 right-0 top-0 z-20 border-b border-gray-200 bg-white">
- <MaxWidthWrapper>
- <div className="flex h-16 items-center justify-between">
- <div className="flex items-center">
- <Link href="/">
- <Logo className="h-8 w-8 transition-all duration-75 active:scale-95" />
- </Link>
- <Divider className="h-8 w-8 text-gray-200 sm:ml-3" />
- <ProjectSelect />
- <UpgradeBanner />
+ <Providers>
+ <div className="min-h-screen w-full bg-gray-50">
+ <div className="sticky left-0 right-0 top-0 z-20 border-b border-gray-200 bg-white">
+ <MaxWidthWrapper>
+ <div className="flex h-16 items-center justify-between">
+ <div className="flex items-center">
+ <Link href="/">
+ <Logo className="h-8 w-8 transition-all duration-75 active:scale-95" />
+ </Link>
+ <Divider className="h-8 w-8 text-gray-200 sm:ml-3" />
+ <ProjectSelect />
+ <UpgradeBanner />
+ </div>
+ <div className="flex items-center space-x-6">
+ <a
+ href={`${HOME_DOMAIN}/changelog`}
+ className="hidden text-sm text-gray-500 transition-colors hover:text-gray-700 sm:block"
+ target="_blank"
+ >
+ Changelog
+ </a>
+ <a
+ href={`${HOME_DOMAIN}/help`}
+ className="hidden text-sm text-gray-500 transition-colors hover:text-gray-700 sm:block"
+ target="_blank"
+ >
+ Help
+ </a>
+ <UserDropdown />
+ </div>
</div>
- <div className="flex items-center space-x-6">
- <a
- href={`${HOME_DOMAIN}/changelog`}
- className="hidden text-sm text-gray-500 transition-colors hover:text-gray-700 sm:block"
- target="_blank"
- >
- Changelog
- </a>
- <a
- href={`${HOME_DOMAIN}/help`}
- className="hidden text-sm text-gray-500 transition-colors hover:text-gray-700 sm:block"
- target="_blank"
- >
- Help
- </a>
- <UserDropdown />
- </div>
- </div>
- <Suspense fallback={<div className="h-12 w-full" />}>
- <NavTabs />
- </Suspense>
- </MaxWidthWrapper>
+ <Suspense fallback={<div className="h-12 w-full" />}>
+ <NavTabs />
+ </Suspense>
+ </MaxWidthWrapper>
+ </div>
+ {children}
</div>
- {children}
- </div>
+ </Providers>
);
}
diff --git a/apps/web/app/app.dub.co/providers.tsx b/apps/web/app/app.dub.co/(dashboard)/providers.tsx
similarity index 100%
rename from apps/web/app/app.dub.co/providers.tsx
rename to apps/web/app/app.dub.co/(dashboard)/providers.tsx
diff --git a/apps/web/app/app.dub.co/layout.tsx b/apps/web/app/app.dub.co/layout.tsx
deleted file mode 100644
index d1e87e4fc9..0000000000
--- a/apps/web/app/app.dub.co/layout.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import Providers from "./providers";
-
-export default function AppLayout({ children }: { children: React.ReactNode }) {
- return <Providers>{children}</Providers>;
-}