File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
feature/detail/src/main/kotlin/com/ninecraft/booket/feature/detail/book/component Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -43,17 +43,16 @@ internal fun RecordsCollection(
4343 count = state.recordCollections.size,
4444 key = { index -> state.recordCollections[index].id },
4545 ) { index ->
46- state.recordCollections[index].apply {
47- RecordItem (
48- quote = quote,
49- emotionTags = emotionTags.toImmutableList(),
50- pageNumber = pageNumber,
51- createdAt = createdAt,
52- modifier = Modifier .clickable {
53- state.eventSink(BookDetailUiEvent .OnRecordItemClick (id))
54- },
55- )
56- }
46+ val record = state.recordCollections[index]
47+ RecordItem (
48+ quote = record.quote,
49+ emotionTags = record.emotionTags.toImmutableList(),
50+ pageNumber = record.pageNumber,
51+ createdAt = record.createdAt,
52+ modifier = Modifier .clickable {
53+ state.eventSink(BookDetailUiEvent .OnRecordItemClick (record.id))
54+ },
55+ )
5756 }
5857 }
5958}
You can’t perform that action at this time.
0 commit comments