From 828e374b9bee10f4582996da35168781248f6572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Sun, 31 Aug 2025 06:51:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AD=89=E6=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/signup/page.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/signup/page.tsx b/app/signup/page.tsx index 512d643..e6a79bb 100644 --- a/app/signup/page.tsx +++ b/app/signup/page.tsx @@ -19,7 +19,7 @@ export default function SignupPage() { const [confirmPasswordError, setConfirmPasswordError] = useState(""); const [showPassword, setShowPassword] = useState(false); const [showConfirmPassword, setShowConfirmPassword] = useState(false); - const [agreeToTerms, setAgreeToTerms] = useState(false); + const [agreeToTerms, setAgreeToTerms] = useState(true); const router = useRouter(); /** Password validation function with English prompts */ @@ -342,10 +342,9 @@ export default function SignupPage() { !!passwordError || !!confirmPasswordError || !password || - !confirmPassword || - !agreeToTerms + !confirmPassword } - className="flex-1 py-3 rounded-lg cursor-pointer bg-[#C039F6] hover:bg-[#C039F6]/80 text-white font-medium transition-colors disabled:opacity-70" + className="flex-1 py-3 rounded-lg cursor-pointer bg-[#C039F6] hover:bg-[#C039F6]/80 text-white font-medium transition-colors disabled:opacity-70 disabled:cursor-not-allowed" > {isSubmitting ? "Signing up..." : "Sign Up"}