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 RequestSetPassword

Steven Tey6388106a6e2f
diff --git a/apps/web/app/app.dub.co/(dashboard)/account/settings/security/request-set-password.tsx b/apps/web/app/app.dub.co/(dashboard)/account/settings/security/request-set-password.tsx
index 07e61c2882..26f7fce4e1 100644
--- a/apps/web/app/app.dub.co/(dashboard)/account/settings/security/request-set-password.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/account/settings/security/request-set-password.tsx
@@ -37,38 +37,32 @@ export const RequestSetPassword = () => {
};
return (
- <div className="rounded-xl border border-neutral-200 bg-white p-6">
- <div className="flex flex-col space-y-1 border-b border-neutral-200">
- <h2 className="text-base font-semibold">Password</h2>
- <p className="pb-2 text-sm text-neutral-500">
- {user?.provider && (
- <>
- Your account is managed by{" "}
- <span
- className={cn(
- "font-medium capitalize text-neutral-700",
- user?.provider === "saml" && "uppercase",
- )}
- >
- {user?.provider}
- </span>
- .{" "}
- </>
- )}
- You can set a password to use with your Dub account.
- </p>
- </div>
- <div className="flex items-center justify-start">
- <div className="shrink-0">
- <Button
- text="Create account password"
- onClick={sendPasswordSetRequest}
- loading={sending}
- disabled={sending}
- className="w-fit"
- />
- </div>
- </div>
+ <div className="flex flex-col gap-2 rounded-xl border border-neutral-200 bg-white p-6">
+ <h2 className="text-base font-semibold">Password</h2>
+ <p className="pb-2 text-sm text-neutral-500">
+ {user?.provider && (
+ <>
+ Your account is managed by{" "}
+ <span
+ className={cn(
+ "font-medium capitalize text-neutral-700",
+ user?.provider === "saml" && "uppercase",
+ )}
+ >
+ {user?.provider}
+ </span>
+ .{" "}
+ </>
+ )}
+ You can set a password to use with your Dub account.
+ </p>
+ <Button
+ text="Create account password"
+ onClick={sendPasswordSetRequest}
+ loading={sending}
+ disabled={sending}
+ className="w-fit"
+ />
</div>
);
};