Skip to content

Commit 19cc8fc

Browse files
authored
Merge pull request #133 from YAPP-Github/BOOK-248-refactor/#132
refactor: emotionPairs chunked 연산 remember 적용
2 parents e872086 + 43467f0 commit 19cc8fc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build-logic/src/main/kotlin/com/ninecraft/booket/convention/ApplicationConstants.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ internal object ApplicationConstants {
77
const val TARGET_SDK = 35
88
const val COMPILE_SDK = 35
99
const val VERSION_CODE = 1
10-
const val VERSION_NAME = "1.0"
10+
const val VERSION_NAME = "1.0.0"
1111
const val JAVA_VERSION_INT = 17
1212
val javaVersion = JavaVersion.VERSION_17
1313
}

feature/record/src/main/kotlin/com/ninecraft/booket/feature/record/step/EmotionStep.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import androidx.compose.foundation.lazy.items
1616
import androidx.compose.foundation.shape.RoundedCornerShape
1717
import androidx.compose.material3.Text
1818
import androidx.compose.runtime.Composable
19+
import androidx.compose.runtime.remember
1920
import androidx.compose.ui.Alignment
2021
import androidx.compose.ui.Modifier
2122
import androidx.compose.ui.draw.clip
@@ -42,6 +43,8 @@ fun EmotionStep(
4243
state: RecordRegisterUiState,
4344
modifier: Modifier = Modifier,
4445
) {
46+
val emotionPairs = remember(state.emotionTags) { state.emotionTags.chunked(2) }
47+
4548
Box(
4649
modifier = modifier
4750
.fillMaxSize()
@@ -74,7 +77,6 @@ fun EmotionStep(
7477
Spacer(modifier = Modifier.height(ReedTheme.spacing.spacing10))
7578
}
7679

77-
val emotionPairs = state.emotionTags.chunked(2)
7880
items(emotionPairs) { pair ->
7981
Row(
8082
modifier = Modifier.fillMaxWidth(),

0 commit comments

Comments
 (0)