@@ -22,7 +22,6 @@ import {
2222} from '../store/slices/signup-address-slice' ;
2323
2424import { useCompleteSignupMutation } from '../store/api/authApi' ;
25- import { clearAuth } from '../store/slices/authSlice' ;
2625import type { RootState } from '../store/index' ;
2726import type { CompleteSignupRequest } from '../types/authTypes' ;
2827
@@ -130,7 +129,7 @@ const SUBMIT_BUTTON_LABELS: Record<UserType, string> = {
130129interface LabeledInputProps {
131130 id ?: string ;
132131 label : string ;
133- type ?: 'text' | 'password' | 'email' | ' tel';
132+ type ?: 'text' | 'password' | 'tel' ;
134133 placeholder ?: string ;
135134 className ?: string ;
136135 value ?: string ;
@@ -254,7 +253,6 @@ export function Signup() {
254253 // 폼 데이터 상태
255254 const [ formData , setFormData ] = useState ( {
256255 name : '' ,
257- email : '' ,
258256 phoneNumber : '' ,
259257 // 사업자 정보
260258 shopName : '' ,
@@ -322,7 +320,7 @@ export function Signup() {
322320 }
323321
324322 // 폼 검증
325- if ( ! formData . name || ! formData . email || ! formData . phoneNumber ) {
323+ if ( ! formData . name || ! formData . phoneNumber ) {
326324 alert ( '필수 정보를 모두 입력해주세요.' ) ;
327325 return ;
328326 }
@@ -343,7 +341,6 @@ export function Signup() {
343341 try {
344342 const requestData : CompleteSignupRequest = {
345343 name : formData . name ,
346- email : formData . email ,
347344 phoneNumber : formData . phoneNumber ,
348345 smsAgreement : agreements . notification || false ,
349346 marketingAgreement : agreements . marketing || false ,
@@ -360,13 +357,6 @@ export function Signup() {
360357 }
361358 } ;
362359
363- const handleCancel = ( ) => {
364- if ( confirm ( '회원가입을 취소하시겠습니까?' ) ) {
365- dispatch ( clearAuth ( ) ) ;
366- navigate ( '/' ) ;
367- }
368- } ;
369-
370360 return (
371361 < div className = "flex w-screen flex-col items-center gap-4 p-4" >
372362 < div className = "flex w-full max-w-md gap-2" >
@@ -397,24 +387,16 @@ export function Signup() {
397387 />
398388 ) }
399389
400- < LabeledInput
401- id = "email"
402- label = "이메일"
403- type = "email"
404- value = { formData . email }
405- onChange = { ( e ) => setFormData ( { ...formData , email : e . target . value } ) }
406- placeholder = "example@email.com"
407- />
408-
409- < LabeledInput
390+ < LabeledInputWithButton
410391 id = "phone"
411392 label = "휴대폰번호"
393+ buttonLabel = "휴대폰인증"
412394 type = "tel"
413395 value = { formData . phoneNumber }
414396 onChange = { ( e ) =>
415397 setFormData ( { ...formData , phoneNumber : e . target . value } )
416398 }
417- placeholder = "010-1234-5678"
399+ // placeholder="010-1234-5678"
418400 />
419401
420402 { isBusinessUser && (
@@ -444,7 +426,7 @@ export function Signup() {
444426 onChange = { ( e ) =>
445427 setFormData ( { ...formData , businessNumber : e . target . value } )
446428 }
447- placeholder = "000-00-00000"
429+ // placeholder="000-00-00000"
448430 />
449431
450432 < div className = "flex flex-col gap-1" >
@@ -481,7 +463,7 @@ export function Signup() {
481463 < label htmlFor = "businessType" > 업종</ label >
482464 < SelectBox
483465 options = { [
484- { value : '' , label : '선택해주세요 ' } ,
466+ { value : '' , label : '' } ,
485467 { value : 'retail' , label : '소매업' } ,
486468 { value : 'manufacturing' , label : '제조업' } ,
487469 ] }
@@ -495,7 +477,7 @@ export function Signup() {
495477 < label htmlFor = "businessCategory" > 업태</ label >
496478 < SelectBox
497479 options = { [
498- { value : '' , label : '선택해주세요 ' } ,
480+ { value : '' , label : '' } ,
499481 { value : 'craft' , label : '공예품' } ,
500482 { value : 'art' , label : '예술품' } ,
501483 ] }
@@ -511,14 +493,14 @@ export function Signup() {
511493 id = "businessCert"
512494 label = "사업자등록증 업로드"
513495 buttonLabel = "업로드"
514- placeholder = "파일을 선택해주세요"
496+ // placeholder="파일을 선택해주세요"
515497 />
516498
517499 < div className = "flex w-full flex-col gap-2" >
518500 < label htmlFor = "mainCategory" > 주요 카테고리</ label >
519501 < SelectBox
520502 options = { [
521- { value : '' , label : '선택해주세요 ' } ,
503+ { value : '' , label : '' } ,
522504 { value : 'pottery' , label : '도자기' } ,
523505 { value : 'textile' , label : '섬유/직물' } ,
524506 { value : 'wood' , label : '목공예' } ,
@@ -561,13 +543,6 @@ export function Signup() {
561543 </ div >
562544
563545 < div className = "flex gap-2" >
564- < Button
565- type = "button"
566- label = "취소"
567- variant = "secondaryLight"
568- onClick = { handleCancel }
569- className = "flex-1"
570- />
571546 < Button
572547 type = "submit"
573548 label = { isLoading ? '처리 중...' : SUBMIT_BUTTON_LABELS [ userType ] }
0 commit comments