The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
potential fix
Steven Teyee9eee32e1bd
diff --git a/apps/web/app/app.dub.co/(dashboard)/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/layout.tsxindex b52703d479..99b9d51494 100644--- a/apps/web/app/app.dub.co/(dashboard)/layout.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/layout.tsx@@ -5,11 +5,10 @@ import { HOME_DOMAIN } from "@dub/utils";import Link from "next/link";import { ReactNode, Suspense } from "react";import UserDropdown from "@/ui/layout/user-dropdown";-import ProjectSelect, {- ProjectSelectPlaceholder,-} from "@/ui/layout/project-select.tsx";+import ProjectSelect from "@/ui/layout/project-select.tsx";import NavTabs from "@/ui/layout/nav-tabs";import UpgradeBanner from "@/ui/layout/upgrade-banner";+import ProjectSelectPlaceholder from "@/ui/layout/project-select.tsx/placeholder";export const metadata = constructMetadata();diff --git a/apps/web/ui/layout/project-select.tsx/index.tsx b/apps/web/ui/layout/project-select.tsx/index.tsxindex 2e59532238..8043a2e0dd 100644--- a/apps/web/ui/layout/project-select.tsx/index.tsx+++ b/apps/web/ui/layout/project-select.tsx/index.tsx@@ -1,6 +1,5 @@import { getAppSession } from "@/lib/auth";import { getProjects } from "@/lib/fetchers";-import { ChevronsUpDown } from "lucide-react";import ProjectSelectClient from "./client";export default async function ProjectSelect() {@@ -10,13 +9,3 @@ export default async function ProjectSelect() {]);return <ProjectSelectClient session={session} projects={projects || []} />;}--export function ProjectSelectPlaceholder() {- return (- <div className="flex animate-pulse items-center space-x-1.5 rounded-lg px-1.5 py-2 sm:w-60">- <div className="h-8 w-8 animate-pulse rounded-full bg-gray-200" />- <div className="hidden h-8 w-28 animate-pulse rounded-md bg-gray-200 sm:block sm:w-40" />- <ChevronsUpDown className="h-4 w-4 text-gray-400" aria-hidden="true" />- </div>- );-}diff --git a/apps/web/ui/layout/project-select.tsx/placeholder.tsx b/apps/web/ui/layout/project-select.tsx/placeholder.tsxnew file mode 100644index 0000000000..1919a33a6f--- /dev/null+++ b/apps/web/ui/layout/project-select.tsx/placeholder.tsx@@ -0,0 +1,11 @@+import { ChevronsUpDown } from "lucide-react";++export default function ProjectSelectPlaceholder() {+ return (+ <div className="flex animate-pulse items-center space-x-1.5 rounded-lg px-1.5 py-2 sm:w-60">+ <div className="h-8 w-8 animate-pulse rounded-full bg-gray-200" />+ <div className="hidden h-8 w-28 animate-pulse rounded-md bg-gray-200 sm:block sm:w-40" />+ <ChevronsUpDown className="h-4 w-4 text-gray-400" aria-hidden="true" />+ </div>+ );+}