mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-01 00:24:38 +02:00
improve verify email redirect flow
This commit is contained in:
parent
c2cbd7e1a1
commit
5bbf32f6a6
18 changed files with 145 additions and 83 deletions
|
@ -79,6 +79,7 @@ export default function VerifyEmailForm({
|
|||
.catch((e) => {
|
||||
setError(formatAxiosError(e, "An error occurred"));
|
||||
console.error("Failed to verify email:", e);
|
||||
setIsSubmitting(false);
|
||||
});
|
||||
|
||||
if (res && res.data?.data?.valid) {
|
||||
|
@ -125,7 +126,7 @@ export default function VerifyEmailForm({
|
|||
<div>
|
||||
<Card className="w-full max-w-md">
|
||||
<CardHeader>
|
||||
<CardTitle>Verify Your Email</CardTitle>
|
||||
<CardTitle>Verify Email</CardTitle>
|
||||
<CardDescription>
|
||||
Enter the verification code sent to your email address.
|
||||
</CardDescription>
|
||||
|
@ -234,7 +235,7 @@ export default function VerifyEmailForm({
|
|||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<div className="text-center text-muted-foreground mt-4">
|
||||
<div className="text-center text-muted-foreground mt-2">
|
||||
<Button
|
||||
type="button"
|
||||
variant="link"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue