File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
feature/record/src/main/kotlin/com/ninecraft/booket/feature/record/step Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import androidx.compose.foundation.lazy.items
1616import androidx.compose.foundation.shape.RoundedCornerShape
1717import androidx.compose.material3.Text
1818import androidx.compose.runtime.Composable
19+ import androidx.compose.runtime.remember
1920import androidx.compose.ui.Alignment
2021import androidx.compose.ui.Modifier
2122import 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(),
You can’t perform that action at this time.
0 commit comments