-
Notifications
You must be signed in to change notification settings - Fork 6
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
AttendanceCodeDialog 구현 #852
base: feature/refactor-attendance-screen
Are you sure you want to change the base?
AttendanceCodeDialog 구현 #852
Conversation
* feat: implement NewAttendanceActivity * feat: implement NewAttendanceViewModel * chore: add compose-lifecycle dependency * feat: define AttendanceAction * feat: implement screens * feat: use SoptTheme in designsystem * chore: data class -> class로 변경 * chore: 람다 프로퍼티 이름 명시 * chore: SoptTheme darkTheme 기본값 사용 * chore: 필요없는 함수 제거 * chore: 구현 안 된 함수에 TODO 삽입 * chore: 동작하지 않는 Preview 제거 * chore: AttendanceAction 내 뷰모델 참조 제거 * chore: code format 변경
|
codes: List<String>, | ||
inputCodes: List<String?>, |
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.
ImmutableList로 바꿔주실 수 있을까요?
AttendanceCodeCardList( | ||
codes = inputCodes, | ||
onTextChange = {}, | ||
onTextFieldFull = {}) |
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.
onTextFieldFull = {}) | |
onTextFieldFull = {} | |
) |
} | ||
Spacer(modifier = Modifier.height(32.dp)) | ||
Button( | ||
onClick = { /*TODO*/ }, |
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.
여긴 이후에?
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.
넵 요 부분 뷰모델 짜면서 넣어줄게요!
if (newText.length < textMaxLength) { | ||
onTextChange(newText) | ||
} else { | ||
onTextFieldFull() | ||
} |
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.
이거 텍스트 복붙해서 붙이는 경우에 이미 한글자 이상 입력한 상황에서는 아예 안 붙여지지 않나요?
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.
오케이!
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.
확인했습니다~ 수고하셨어요!
Row(modifier = modifier) { | ||
repeat(codes.size) { index -> | ||
AttendanceCodeCard( | ||
text = codes[index] ?: "", | ||
onTextChange = onTextChange, | ||
onTextFieldFull = onTextFieldFull | ||
) |
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.
아하 이렇게 단순 반복되는 작업은 repeat를 사용해서 나타낼 수 있군요!
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.
수가 고정된 경우는 그냥 LazyRow 쓰는 거나 저거나 별 차이 없을거에요
} else { | ||
onTextFieldFull() | ||
} | ||
}, modifier = modifier |
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.
}, modifier = modifier | |
}, | |
modifier = modifier |
What is this issue?
출석 화면 리팩토링 중, AttendanceCodeDialog에 관한 중간 PR입니다.
Reference
코드에 관한 질문? 지적? 환영합니다.