From 6106407e186166d8928e7473a1553b5828216149 Mon Sep 17 00:00:00 2001 From: lydiacho Date: Mon, 14 Oct 2024 19:03:05 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=8B=89=EB=84=A4=EC=9E=84=20=EC=A4=91?= =?UTF-8?q?=EB=B3=B5=EC=B2=B4=ED=81=AC=20=EC=97=AC=EB=B6=80=20=EC=9C=A0?= =?UTF-8?q?=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...35\270\354\240\225\353\263\264\354\236\205\353\240\245.tsx" | 3 ++- src/pages/onboarding/type.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git "a/src/pages/onboarding/components/commonOnboarding/Step\352\260\234\354\235\270\354\240\225\353\263\264\354\236\205\353\240\245.tsx" "b/src/pages/onboarding/components/commonOnboarding/Step\352\260\234\354\235\270\354\240\225\353\263\264\354\236\205\353\240\245.tsx" index e57fd8e3..0c950425 100644 --- "a/src/pages/onboarding/components/commonOnboarding/Step\352\260\234\354\235\270\354\240\225\353\263\264\354\236\205\353\240\245.tsx" +++ "b/src/pages/onboarding/components/commonOnboarding/Step\352\260\234\354\235\270\354\240\225\353\263\264\354\236\205\353\240\245.tsx" @@ -22,7 +22,7 @@ const Step개인정보입력 = () => { type nicknameErrorType = 'INVALID' | 'CONFLICT'; type nicknameStatusType = 'EMPTY' | 'VALID' | nicknameErrorType; - const [nicknameStatus, setNicknameStatus] = useState('EMPTY'); + const [nicknameStatus, setNicknameStatus] = useState(data.isNicknameValid ? 'VALID' : 'EMPTY'); const [imageFile, setImageFile] = useState(data.imageFile || null); @@ -66,6 +66,7 @@ const Step개인정보입력 = () => { imageFile, image: res.fileName, nickname: nickname, + isNicknameValid: true, })); navigate(pathname.includes('senior') ? '/seniorOnboarding/3' : '/juniorOnboarding/3'); }; diff --git a/src/pages/onboarding/type.ts b/src/pages/onboarding/type.ts index 04657016..e31a9752 100644 --- a/src/pages/onboarding/type.ts +++ b/src/pages/onboarding/type.ts @@ -12,6 +12,7 @@ export interface JoinPropType { role: 'SENIOR' | 'JUNIOR'; isSubscribed: boolean[]; nickname: string; + isNicknameValid: boolean; image: string; imageFile?: File; phoneNumber: string;