Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
400에러 해결해서 이제는 아마 정상적으로 작동할겁니다!
테스트도 많이 해봤는데 제대로 작동 하는 것 같습니다. (6번 정도)
!! mypage 부분의 UI도 조금 수정했는데 아직 완성은 아니니 안보셔도 될 것 같습니다.
(mypage 하다가 갑자기 에러 고칠 생각이 나서 하다 말고 고치러 간... 하하)
++ 로그인, 회원가입 페이지에서도 로그인 상태시 mydashboard로 이동하게는 아직 구현 안했습니다!
ISSUE
기존의 400에러가 뜨는 이유는 각 함수에서 받아오는 Input의 value값이 달라서 폼을 제출할 때 빈 값이 전달되어서 그랬던 것이었습니다.
가장 큰 변화점은 useInputHandlers 함수, useLoginForm 함수, useSignUpForm 함수의
Input의 value값을 통일 시키기 위해서, useCombinedSignUpForm.ts 파일이 추가되었습니다.
그래서 각 컴포넌트 LoginForm, SignUpForm 에서는 useCombinedSignUpForm로 부터 값을 받아옵니다.
테스트 해 보시고 문제 발생하면 말씀해주세요!