-
Notifications
You must be signed in to change notification settings - Fork 0
오류 해결 및 운동 기록 ui 수정 #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
오류 해결 및 운동 기록 ui 수정 #136
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드 리뷰
1. 삭제된
onOrderChangepropsonOrderChangeprop이 삭제되었는데, 이 기능을 사용하는 다른 부분 (예: 부모 컴포넌트)에서 문제가 발생할 수 있습니다. 이 prop을 사용하는 코드가 없다면 삭제해도 괜찮지만, 관련된 부분이 있다면 이 과정을 문서화하고 동작이 어떻게 바뀔 것인지 명시해야 합니다.2. 데이터 변환
parseInt를 사용하여 문자열을 정수로 변환하는 부분이 보입니다. 이 경우 사용자가 유효하지 않은 값을 입력할 경우0으로 기본값을 설정하고 있습니다. 이는 의도하지 않은 동작을 유발할 수 있습니다. 예를 들어, 비어 있거나 문자를 입력한 경우 명시적으로 에러 처리를 해주는 것이 좋습니다.onWeightChange와onRepsChange에서 유효성 검사 로직을 추가하여 사용자가 잘못된 값을 입력하지 않도록 해야 합니다.3. 스타일 및 접근성
TouchableOpacity에accessible및accessibilityLabel속성을 추가하면 좋습니다.4. 반응형 디자인 성능
TextInput및 기타 UI 요소에 대한 최대 너비를%로 설정하는 것은 좋지만, 너무 많은 너비를 사용할 경우 작은 화면에서 잘리지 않을 수 있습니다. 다양한 해상도에서의 테스트가 필요합니다.5. 주석
// 완료 버튼의 경우 완료 버튼의 동작이나 사용 사례를 더 명확히 설명해야 합니다.이와 같은 점을 개선하면 코드를 더 안전하고 유지보수하기 쉬운 상태로 만드는 데 도움이 될 것입니다.