From 4f3593040c9d190a2258307ade2b6a7e732cd03f Mon Sep 17 00:00:00 2001 From: hojin Date: Thu, 13 Jun 2024 15:46:47 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85?= =?UTF-8?q?=20=EB=94=94=EC=9E=90=EC=9D=B8,=EB=A1=9C=EC=A7=81=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/sign/phase.svg | 3 +++ src/components/sign/signup/EmailVerification.tsx | 13 ++++++++++--- .../sign/signup/PasswordVerification.tsx | 14 ++++++++------ 3 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 public/sign/phase.svg diff --git a/public/sign/phase.svg b/public/sign/phase.svg new file mode 100644 index 0000000..3b778ae --- /dev/null +++ b/public/sign/phase.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/sign/signup/EmailVerification.tsx b/src/components/sign/signup/EmailVerification.tsx index 9180142..d2de116 100644 --- a/src/components/sign/signup/EmailVerification.tsx +++ b/src/components/sign/signup/EmailVerification.tsx @@ -158,9 +158,16 @@ const EmailVerification = ({ onNext }: EmailVerification) => { 3 단계 -
-
- 한번 더 확인이 필요해요. +
+ image +
+
+ 한번 더 확인이 필요해요. +
diff --git a/src/components/sign/signup/PasswordVerification.tsx b/src/components/sign/signup/PasswordVerification.tsx index adad434..4bb6bf4 100644 --- a/src/components/sign/signup/PasswordVerification.tsx +++ b/src/components/sign/signup/PasswordVerification.tsx @@ -55,12 +55,12 @@ const PasswordVerification = ({ onNext, applyValues }: PasswordVerificationProps }, [selectedJob]); const handlePasswordChange = (e: React.ChangeEvent) => { - setPasswordError(false); const newPassword = e.target.value; setPassword(newPassword); + checkValidPassword(newPassword); }; - const checkValidPassword = () => { + const checkValidPassword = (password: string) => { const passwordRegex = /^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[@#$%^&+=!])(?=\S+$).{8,16}$/; if (!passwordRegex.test(password)) { setPasswordError(true); @@ -99,9 +99,12 @@ const PasswordVerification = ({ onNext, applyValues }: PasswordVerificationProps 3 단계
-
-
- 거의 다 완료되었어요! +
+ image +
+
+ 거의 다 완료되었어요! +
@@ -199,7 +202,6 @@ const PasswordVerification = ({ onNext, applyValues }: PasswordVerificationProps placeholder="비밀번호를 입력해주세요." value={password} onChange={handlePasswordChange} - onBlur={checkValidPassword} />