Compare commits

...
2 changed files with 21 additions and 19 deletions
@@ -69,17 +69,17 @@ export const SignupForm = ({
}
};
const handleGoogleSuccess = (isNewUser: boolean) => {
onSuccess(isNewUser);
};
//const handleGoogleSuccess = (isNewUser: boolean) => {
// onSuccess(isNewUser);
//};
const handleGoogleError = (errorMessage: string) => {
setError(errorMessage);
};
//const handleGoogleError = (errorMessage: string) => {
// setError(errorMessage);
//};
return (
<div className={`space-y-4 ${className}`}>
{showGoogleButton && (
{/* {showGoogleButton && (
<>
<GoogleLoginButton
mode="signup"
@@ -97,6 +97,7 @@ export const SignupForm = ({
</div>
</>
)}
*/}
{error && (
<div className="bg-red-500/10 border border-red-500/20 text-red-400 px-4 py-3 rounded-xl text-sm text-center animate-in fade-in slide-in-from-top-2">
@@ -36,18 +36,18 @@ const Login = () => {
}
};
const handleGoogleSuccess = (isNewUser: boolean) => {
if (isNewUser) {
// Optionally redirect to set username for new users
navigate("/welcome");
} else {
navigate("/");
}
};
//const handleGoogleSuccess = (isNewUser: boolean) => {
// if (isNewUser) {
// // Optionally redirect to set username for new users
// navigate("/welcome");
// } else {
// navigate("/");
// }
//};
const handleGoogleError = (errorMessage: string) => {
setError(errorMessage);
};
//const handleGoogleError = (errorMessage: string) => {
// setError(errorMessage);
//};
return (
<div className="relative min-h-screen bg-[#101014] text-white bg-dots flex flex-col">
@@ -65,7 +65,7 @@ const Login = () => {
</div>
<div className="space-y-4">
<GoogleLoginButton
{/*<GoogleLoginButton
mode="login"
onSuccess={handleGoogleSuccess}
onError={handleGoogleError}
@@ -79,6 +79,7 @@ const Login = () => {
or
</span>
</div>
*/}
<div className="space-y-4">
{error && (