We couldn't send the email. Please try again!
),
type: "error",
});
} finally {
setLoading(false);
}
};
const handleCodeSubmit = async (code: string) => {
if (!tokenId) return;
setLoading(true);
const confirmedToken = await confirmEmailAuthToken(tokenId, code, {
page: window.location.href,
});
if (!confirmedToken) {
setLoading(false);
toaster({
content:
{state === "log in" ? (
<>
Log in with
Atmosphere account
What's the Atmosphere?
}
/>
}
loading={loading}
validateHandle
onSubmit={(handle) => {
setLoading(true);
window.location.href = buildOauthLoginUrl({
handle,
redirect: props.redirectRoute || window.location.href,
action: props.action,
addAccount: props.addAccount,
});
}}
/>
{props.noEmailLogin ? null : (
<>
>
)}
>
) : state === "email log in" ? (
) : state === "email confirm" ? (
setState("email log in")}
/>
) : (
Leaflet is part of
the Atmosphere.
Create an Atmosphere account on Bluesky to get started!
{
window.location.href = buildOauthLoginUrl({
redirect: props.redirectRoute || "/",
signup: true,
action: props.action,
addAccount: props.addAccount,
});
}}
>
Sign up via Bluesky
)}
);
};
const LinkAtmosphereContent = (props: {
pageView?: boolean;
redirectRoute?: string;
action?: string;
open?: boolean;
}) => {
let [loading, setLoading] = useState(false);
return (