completionId: cgen-3b2bc2e51e204c49a7ad2b86504c3e09
cgen-3b2bc2e51e204c49a7ad2b86504c3e09
This commit is contained in:
parent
b638290d74
commit
fec30de1e4
1 changed files with 7 additions and 86 deletions
|
|
@ -534,33 +534,19 @@ export default function Welcome({
|
|||
) : (
|
||||
<>
|
||||
<p className="text-foreground/80">
|
||||
Check your inbox for the AeThex verification email. You must
|
||||
confirm it before you can sign in again.
|
||||
Check your inbox for the AeThex confirmation email we sent during sign-up. Click the verification link in that email to confirm your account.
|
||||
</p>
|
||||
<ul className="list-disc space-y-1 pl-5 text-foreground/70">
|
||||
<li>Look in your spam or promotions folder.</li>
|
||||
<li>Check your email inbox and spam folder.</li>
|
||||
<li>
|
||||
Add
|
||||
The confirmation email is from
|
||||
<span className="mx-1 font-mono text-xs text-foreground/80">
|
||||
support@aethex.biz
|
||||
support@aethex.tech
|
||||
</span>
|
||||
to your safe sender list.
|
||||
</li>
|
||||
<li>Use the buttons below to resend or check your status.</li>
|
||||
<li>Once verified, click the button below to continue.</li>
|
||||
</ul>
|
||||
<div className="flex flex-col gap-2 sm:flex-row sm:flex-wrap">
|
||||
<Button
|
||||
type="button"
|
||||
variant="outline"
|
||||
className="border-border/50"
|
||||
onClick={handleResendVerification}
|
||||
disabled={isSendingVerification}
|
||||
>
|
||||
{isSendingVerification && (
|
||||
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
|
||||
)}
|
||||
Resend verification email
|
||||
</Button>
|
||||
<div className="flex flex-col gap-2">
|
||||
<Button
|
||||
type="button"
|
||||
variant="secondary"
|
||||
|
|
@ -571,74 +557,9 @@ export default function Welcome({
|
|||
{isCheckingVerification && (
|
||||
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
|
||||
)}
|
||||
I verified, check again
|
||||
I verified, check status
|
||||
</Button>
|
||||
</div>
|
||||
{fallbackVerificationLink ? (
|
||||
<div className="space-y-2 rounded border border-border/40 bg-background/60 p-3">
|
||||
<p className="text-xs text-muted-foreground">
|
||||
Email delivery failed. Copy this link into your browser to
|
||||
verify manually:
|
||||
</p>
|
||||
<p className="break-all rounded bg-background/80 px-3 py-2 font-mono text-[11px] text-foreground/90">
|
||||
{fallbackVerificationLink}
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
<Button
|
||||
type="button"
|
||||
size="sm"
|
||||
variant="outline"
|
||||
className="border-aethex-400/40"
|
||||
onClick={() =>
|
||||
window.open(
|
||||
fallbackVerificationLink,
|
||||
"_blank",
|
||||
"noopener",
|
||||
)
|
||||
}
|
||||
>
|
||||
Open verification link
|
||||
</Button>
|
||||
<Button
|
||||
type="button"
|
||||
size="sm"
|
||||
variant="ghost"
|
||||
className="text-aethex-300 hover:text-aethex-200"
|
||||
onClick={() => {
|
||||
if (
|
||||
typeof navigator !== "undefined" &&
|
||||
navigator.clipboard?.writeText
|
||||
) {
|
||||
navigator.clipboard
|
||||
.writeText(fallbackVerificationLink)
|
||||
.then(() =>
|
||||
toastInfo({
|
||||
title: "Link copied",
|
||||
description:
|
||||
"Paste the link into your browser to verify.",
|
||||
}),
|
||||
)
|
||||
.catch(() =>
|
||||
toastWarning({
|
||||
title: "Copy failed",
|
||||
description:
|
||||
"Copy the link manually from the box above.",
|
||||
}),
|
||||
);
|
||||
} else {
|
||||
toastWarning({
|
||||
title: "Copy unavailable",
|
||||
description:
|
||||
"Copy the link manually from the box above.",
|
||||
});
|
||||
}
|
||||
}}
|
||||
>
|
||||
Copy link
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
) : null}
|
||||
</>
|
||||
)}
|
||||
</CardContent>
|
||||
|
|
|
|||
Loading…
Reference in a new issue