diff --git a/apps/blogai/app/[locale]/auth/sign-up/[[...sign-up]]/page.tsx b/apps/blogai/app/[locale]/auth/sign-up/[[...sign-up]]/page.tsx
index 8966d5e..65dc19c 100644
--- a/apps/blogai/app/[locale]/auth/sign-up/[[...sign-up]]/page.tsx
+++ b/apps/blogai/app/[locale]/auth/sign-up/[[...sign-up]]/page.tsx
@@ -23,18 +23,9 @@ export default function AuthenticationPage() {
return (
{error ?
{error} : null}
-
- {!verify ? (
- <>
+ <>
- {/*
Create new account
*/}
{t("auth.sign_up")}
- {/*
- Sign up to Unkey or?
-
- Sign in
-
-
*/}
@@ -52,26 +43,8 @@ export default function AuthenticationPage() {
/>
-
-
- {/*
*/}
>
- ) : (
-
- setError(e)}
- emailValue={email}
- passwordValue={password}
- />
-
- )}
+
);
}
diff --git a/apps/blogai/app/[locale]/auth/sign-up/[[...sign-up]]/page_with_email_verify.tsx b/apps/blogai/app/[locale]/auth/sign-up/[[...sign-up]]/page_with_email_verify.tsx
new file mode 100644
index 0000000..8966d5e
--- /dev/null
+++ b/apps/blogai/app/[locale]/auth/sign-up/[[...sign-up]]/page_with_email_verify.tsx
@@ -0,0 +1,77 @@
+"use client";
+import { FadeIn } from "@/components/landing/fade-in";
+import * as React from "react";
+import { ErrorBanner } from "../../banners";
+import { EmailCode } from "../email-code";
+import { EmailSignUp } from "../email-signup";
+import { MixSignUp } from "../mix-signup";
+import { OAuthSignUp } from "../oauth-signup";
+
+import Link from "next/link";
+import { useTranslation } from "react-i18next";
+
+export default function AuthenticationPage() {
+ const [error, setError] = React.useState(null);
+ const [verify, setVerify] = React.useState(false);
+
+ const [email, setEmail] = React.useState("");
+ const [password, setPassword] = React.useState("");
+ const [code, setCode] = React.useState("");
+
+ const { t } = useTranslation();
+
+ return (
+
+ {error ?
{error} : null}
+
+ {!verify ? (
+ <>
+
+ {/*
Create new account
*/}
+
{t("auth.sign_up")}
+ {/*
+ Sign up to Unkey or?
+
+ Sign in
+
+
*/}
+
+
+
+
+
+ {/*
*/}
+ >
+ ) : (
+
+ setError(e)}
+ emailValue={email}
+ passwordValue={password}
+ />
+
+ )}
+
+ );
+}
diff --git a/apps/blogai/app/[locale]/auth/sign-up/email-code.tsx b/apps/blogai/app/[locale]/auth/sign-up/email-code.tsx
index 9685290..bdf1d7f 100644
--- a/apps/blogai/app/[locale]/auth/sign-up/email-code.tsx
+++ b/apps/blogai/app/[locale]/auth/sign-up/email-code.tsx
@@ -64,6 +64,7 @@ export const EmailCode: React.FC = ({ setError, emailValue, passwordValue
});
};
+
const resendCode = async () => {
console.log("resendCode", emailValue)
try {
@@ -93,9 +94,7 @@ export const EmailCode: React.FC = ({ setError, emailValue, passwordValue
console.error(error);
}
};
-
const [otp, setOtp] = React.useState("");
-
return (