completionId: cgen-1d1cf30f04c34a3083c18c057f29e3cd
cgen-1d1cf30f04c34a3083c18c057f29e3cd
This commit is contained in:
parent
70d3ce2ee8
commit
9e0f53751d
1 changed files with 21 additions and 19 deletions
|
|
@ -392,25 +392,27 @@ export default function Login() {
|
|||
<Sparkles className="h-4 w-4 mr-2" />
|
||||
Continue with Roblox
|
||||
</Button>
|
||||
<Button
|
||||
variant="outline"
|
||||
className="w-full hover-lift interactive-scale"
|
||||
onClick={() => {
|
||||
const apiBase =
|
||||
(import.meta as any)?.env?.VITE_API_BASE ||
|
||||
window.location.origin;
|
||||
const u = new URL("/api/discord/oauth/start", apiBase);
|
||||
const next = new URLSearchParams(
|
||||
window.location.search,
|
||||
).get("next");
|
||||
if (next && next.startsWith("/"))
|
||||
u.searchParams.set("state", next);
|
||||
window.location.href = u.toString();
|
||||
}}
|
||||
>
|
||||
<DiscordIcon />
|
||||
<span className="ml-2">Continue with Discord</span>
|
||||
</Button>
|
||||
{!isActivity && (
|
||||
<Button
|
||||
variant="outline"
|
||||
className="w-full hover-lift interactive-scale"
|
||||
onClick={() => {
|
||||
const apiBase =
|
||||
(import.meta as any)?.env?.VITE_API_BASE ||
|
||||
window.location.origin;
|
||||
const u = new URL("/api/discord/oauth/start", apiBase);
|
||||
const next = new URLSearchParams(
|
||||
window.location.search,
|
||||
).get("next");
|
||||
if (next && next.startsWith("/"))
|
||||
u.searchParams.set("state", next);
|
||||
window.location.href = u.toString();
|
||||
}}
|
||||
>
|
||||
<DiscordIcon />
|
||||
<span className="ml-2">Continue with Discord</span>
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Email/Password Form */}
|
||||
|
|
|
|||
Loading…
Reference in a new issue