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.

Partner account settings updates

Marcus Farrelle6a10b82bb39
diff --git 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
index b2e2fb197a..05b2c1b499 100644
--- 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,16 +8,22 @@ import UserId from "@/ui/account/user-id";
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() {
const { data: session, update, status } = useSession();
+ const [isPartnerPage, setIsPartnerPage] = useState(false);
+
+ useEffect(() => {
+ setIsPartnerPage(window.location.hostname.startsWith("partners."));
+ }, []);
return (
<>
<Form
title="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:
@@ -75,7 +81,7 @@ export default function SettingsPageClient() {
/>
<UploadAvatar />
<UserId />
- <UpdateDefaultWorkspace />
+ {!isPartnerPage && <UpdateDefaultWorkspace />}
<DeleteAccountSection />
</>
);
diff --git a/apps/web/ui/account/upload-avatar.tsx b/apps/web/ui/account/upload-avatar.tsx
index dfebfcf5ba..41e0a0e794 100644
--- a/apps/web/ui/account/upload-avatar.tsx
+++ b/apps/web/ui/account/upload-avatar.tsx
@@ -43,7 +43,7 @@ export default function UploadAvatar() {
<div className="flex flex-col space-y-3 p-5 sm:p-10">
<h2 className="text-xl font-medium">Your Avatar</h2>
<p className="text-sm text-neutral-500">
- This is your avatar image on {process.env.NEXT_PUBLIC_APP_NAME}.
+ This is your avatar image on your {process.env.NEXT_PUBLIC_APP_NAME} account.
</p>
<div className="mt-1">
<FileUpload
diff --git a/apps/web/ui/layout/sidebar/user-dropdown.tsx b/apps/web/ui/layout/sidebar/user-dropdown.tsx
index b4caf75f88..166cedf2b6 100644
--- a/apps/web/ui/layout/sidebar/user-dropdown.tsx
+++ b/apps/web/ui/layout/sidebar/user-dropdown.tsx
@@ -50,7 +50,7 @@ export default function UserDropdown() {
)}
<UserOption
as={Link}
- label="Account"
+ label="Account settings"
icon={User}
href="/account/settings"
onClick={() => setOpenPopover(false)}