The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Merge branch 'main' into pr/2686
Steven Tey5ad814309988
diff --cc apps/web/app/app.dub.co/(dashboard)/account/settings/page-client.tsxindex 05b2c1b499,36624f1867..ce9e1aa7ca--- a/apps/web/app/app.dub.co/(dashboard)/account/settings/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/account/settings/page-client.tsx@@@ -8,22 -9,16 +9,22 @@@ import { PageWidthWrapper } from "@/ui/import { Form } from "@dub/ui";import { APP_NAME } from "@dub/utils";import { useSession } from "next-auth/react";+import { useEffect, useState } from "react";import { toast } from "sonner";- export default function SettingsPageClient() {+ export function SettingsPageClient() {const { data: session, update, status } = useSession();+ const [isPartnerPage, setIsPartnerPage] = useState(false);++ useEffect(() => {+ setIsPartnerPage(window.location.hostname.startsWith("partners."));+ }, []);return (- <>+ <PageWidthWrapper className="mb-8 grid gap-8"><Formtitle="Your Name"- description={`This will be your display name on ${APP_NAME}.`}+ description={`This is the display name on your ${APP_NAME} account.`}inputAttrs={{name: "name",defaultValue:@@@ -81,8 -76,8 +82,8 @@@/><UploadAvatar /><UserId />- <UpdateDefaultWorkspace />+ {!isPartnerPage && <UpdateDefaultWorkspace />}<DeleteAccountSection />- </>+ </PageWidthWrapper>);}