|
1 | | -import { useEffect, useState } from 'react'; |
| 1 | +import { useEffect} from 'react'; |
2 | 2 | import { useNavigate } from 'react-router-dom'; |
3 | 3 | import { useForm, SubmitHandler } from 'react-hook-form'; |
4 | 4 | import Header from '../../../design-system/ui/Header'; |
@@ -41,21 +41,6 @@ const InfoInputPage = () => { |
41 | 41 | const formatted = formatPhoneNumber(e.target.value); |
42 | 42 | setValue('phone', formatted, { shouldValidate: true }); |
43 | 43 | }; |
44 | | - // 전화번호 인증 |
45 | | - const [isVerifyVisible, setIsVerifyVisible] = useState(false); |
46 | | - const [verificationCode, setVerificationCode] = useState(''); |
47 | | - const handlePhoneVerifyClick = () => { |
48 | | - if (!phoneValue) { |
49 | | - alert('연락처를 입력해주세요.'); |
50 | | - return; |
51 | | - } |
52 | | - setIsVerifyVisible(true); |
53 | | - }; |
54 | | - const handleVerifySubmit = () => { |
55 | | - // 여기서 인증번호 검증 로직 실행 (백엔드 호출 등) |
56 | | - console.log("tets"); |
57 | | - }; |
58 | | - |
59 | 44 | const onSubmit: SubmitHandler<FormData> = formData => { |
60 | 45 | const agreementStates = getAgreementStates(); |
61 | 46 | const updatedData = { |
@@ -131,29 +116,7 @@ const InfoInputPage = () => { |
131 | 116 | onChange={handlePhoneChange} |
132 | 117 | /> |
133 | 118 | </div> |
134 | | - <Button |
135 | | - label="인증하기" |
136 | | - onClick={handlePhoneVerifyClick} |
137 | | - className="h-11 px-4 rounded-md" |
138 | | - /> |
139 | 119 | </div> |
140 | | - |
141 | | - {/* 인증번호 입력 필드 */} |
142 | | - {isVerifyVisible && ( |
143 | | - <div className="flex flex-col gap-2 mt-2"> |
144 | | - <UnderlineTextField |
145 | | - placeholder="인증번호 4자리" |
146 | | - value={verificationCode} |
147 | | - onChange={(e) => setVerificationCode(e.target.value)} |
148 | | - className="text-xl" |
149 | | - label={''} /> |
150 | | - <Button |
151 | | - label="인증 확인" |
152 | | - onClick={handleVerifySubmit} |
153 | | - className="w-full h-10 rounded-full" |
154 | | - /> |
155 | | - </div> |
156 | | - )} |
157 | 120 | {/* 이메일 필드 */} |
158 | 121 | <UnderlineTextField |
159 | 122 | label="이메일" |
|
0 commit comments