From 8982a8c73ee587e169a360e4a61883fc812827a6 Mon Sep 17 00:00:00 2001 From: LEE YOU BIN Date: Fri, 19 Jul 2024 10:59:08 +0900 Subject: [PATCH 1/7] =?UTF-8?q?[FIX/#152]=20=EB=B0=94=ED=85=80=EC=8B=9C?= =?UTF-8?q?=ED=8A=B8=20=EA=B3=A0=EC=A0=95=20=EC=BA=90=EB=A6=AD=ED=84=B0=20?= =?UTF-8?q?=EA=B0=92=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bottomsheet/SignUpBottomSheet.kt | 29 +++++-------------- .../feature/onboarding/signup/SignUpRoute.kt | 1 + .../signup/component/SignUpProfile.kt | 2 +- 3 files changed, 10 insertions(+), 22 deletions(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SignUpBottomSheet.kt b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SignUpBottomSheet.kt index 629f8a1d5..8b4b6e27b 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SignUpBottomSheet.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SignUpBottomSheet.kt @@ -3,18 +3,14 @@ package com.terning.core.designsystem.component.bottomsheet import androidx.compose.foundation.Image import androidx.compose.foundation.border import androidx.compose.foundation.layout.Arrangement -import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.aspectRatio -import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding -import androidx.compose.foundation.layout.wrapContentSize import androidx.compose.foundation.lazy.grid.GridCells import androidx.compose.foundation.lazy.grid.LazyVerticalGrid import androidx.compose.foundation.lazy.grid.itemsIndexed import androidx.compose.foundation.shape.CircleShape -import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Text import androidx.compose.material3.rememberModalBottomSheetState @@ -29,12 +25,10 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.draw.clip import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource -import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp import com.terning.core.R import com.terning.core.designsystem.component.button.RoundButton import com.terning.core.designsystem.theme.TerningMain -import com.terning.core.designsystem.theme.TerningPointTheme import com.terning.core.designsystem.theme.TerningTheme import com.terning.core.extension.noRippleClickable import kotlinx.coroutines.launch @@ -44,12 +38,13 @@ import kotlinx.coroutines.launch fun SignUpBottomSheet( modifier: Modifier = Modifier, onDismiss: () -> Unit, - onSaveClick: (Int) -> Unit + onSaveClick: (Int) -> Unit, + initialSelectedOption: Int ) { val scope = rememberCoroutineScope() val sheetState = rememberModalBottomSheetState() - var selectedImageIndex by remember { mutableIntStateOf(-1) } + var selectedImageIndex by remember { mutableIntStateOf(initialSelectedOption) } TerningBasicBottomSheet( content = { @@ -66,7 +61,8 @@ fun SignUpBottomSheet( RadioButtonGroup( onOptionSelected = { index -> selectedImageIndex = index - } + }, + initialSelectedOption = initialSelectedOption ) Spacer(modifier = modifier.padding(bottom = 24.dp)) RoundButton( @@ -95,7 +91,8 @@ fun SignUpBottomSheet( @Composable fun RadioButtonGroup( modifier: Modifier = Modifier, - onOptionSelected: (Int) -> Unit + onOptionSelected: (Int) -> Unit, + initialSelectedOption: Int ) { val options = listOf( R.drawable.ic_terning_profile_00, @@ -106,7 +103,7 @@ fun RadioButtonGroup( R.drawable.ic_terning_profile_05 ) - var selectedOption by rememberSaveable { mutableIntStateOf(options[0]) } + var selectedOption by rememberSaveable { mutableIntStateOf(options[initialSelectedOption]) } LazyVerticalGrid( columns = GridCells.Fixed(3), @@ -142,14 +139,4 @@ fun RadioButtonGroup( ) } } -} - -@Preview(showBackground = true) -@Composable -fun SignUpBottomSheetPreview() { - TerningPointTheme { - RadioButtonGroup( - onOptionSelected = {} - ) - } } \ No newline at end of file diff --git a/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpRoute.kt b/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpRoute.kt index 60d6e2899..fe5fb8984 100644 --- a/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpRoute.kt +++ b/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpRoute.kt @@ -98,6 +98,7 @@ fun SignUpScreen( showBottomSheet = false signUpViewModel.fetchCharacter(it) }, + initialSelectedOption = signUpState.character ) } Text( diff --git a/feature/src/main/java/com/terning/feature/onboarding/signup/component/SignUpProfile.kt b/feature/src/main/java/com/terning/feature/onboarding/signup/component/SignUpProfile.kt index ba425dd73..28fca2bfe 100644 --- a/feature/src/main/java/com/terning/feature/onboarding/signup/component/SignUpProfile.kt +++ b/feature/src/main/java/com/terning/feature/onboarding/signup/component/SignUpProfile.kt @@ -22,7 +22,7 @@ fun SignUpProfile( modifier: Modifier = Modifier, index: Int ) { - var grade = when (index) { + val grade = when (index) { 0 -> R.drawable.ic_terning_profile_00 1 -> R.drawable.ic_terning_profile_01 2 -> R.drawable.ic_terning_profile_02 From 3cfe43f809e3f63c89125ea39895117c55806ca7 Mon Sep 17 00:00:00 2001 From: LEE YOU BIN Date: Fri, 19 Jul 2024 11:19:19 +0900 Subject: [PATCH 2/7] =?UTF-8?q?[FIX/#152]=20=EB=9D=84=EC=96=B4=EC=93=B0?= =?UTF-8?q?=EA=B8=B0=EB=A7=8C=EC=9C=BC=EB=A1=9C=20=EC=9D=B4=EB=A3=A8?= =?UTF-8?q?=EC=96=B4=EC=A7=84=20=EC=9D=B4=EB=A6=84=20=EB=B2=84=ED=8A=BC=20?= =?UTF-8?q?=EB=B9=84=ED=99=9C=EC=84=B1=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/terning/feature/onboarding/signin/SignInViewModel.kt | 1 - .../com/terning/feature/onboarding/signup/SignUpViewModel.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/feature/src/main/java/com/terning/feature/onboarding/signin/SignInViewModel.kt b/feature/src/main/java/com/terning/feature/onboarding/signin/SignInViewModel.kt index d2c2abaaf..95172e193 100644 --- a/feature/src/main/java/com/terning/feature/onboarding/signin/SignInViewModel.kt +++ b/feature/src/main/java/com/terning/feature/onboarding/signin/SignInViewModel.kt @@ -107,6 +107,5 @@ class SignInViewModel @Inject constructor( companion object { private const val KAKAO_NOT_LOGGED_IN = "statusCode=302" private const val KAKAO = "KAKAO" - private const val BEARER = "Bearer " } } diff --git a/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpViewModel.kt b/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpViewModel.kt index 1d3bb9cfa..7b3a1e170 100644 --- a/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpViewModel.kt +++ b/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpViewModel.kt @@ -46,7 +46,7 @@ class SignUpViewModel @Inject constructor( isButtonValid = false ) - trimmedName.isEmpty() -> _state.value = _state.value.copy( + trimmedName.isEmpty() || trimmedName.isBlank() -> _state.value = _state.value.copy( name = trimmedName, drawLineColor = Grey500, helper = R.string.sign_up_helper, From 4a86d84007fb68fd466e829c795f8f46b5392401 Mon Sep 17 00:00:00 2001 From: LEE YOU BIN Date: Fri, 19 Jul 2024 11:33:49 +0900 Subject: [PATCH 3/7] =?UTF-8?q?[FIX/#152]=20=EC=98=A8=EB=B3=B4=EB=94=A9=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../filtering/filtering/FilteringOneScreen.kt | 4 ++-- .../filtering/FilteringThreeScreen.kt | 4 ++-- .../filtering/filtering/FilteringTwoScreen.kt | 18 +++++------------- 3 files changed, 9 insertions(+), 17 deletions(-) diff --git a/feature/src/main/java/com/terning/feature/filtering/filtering/FilteringOneScreen.kt b/feature/src/main/java/com/terning/feature/filtering/filtering/FilteringOneScreen.kt index 820f67c76..6a5b4cf85 100644 --- a/feature/src/main/java/com/terning/feature/filtering/filtering/FilteringOneScreen.kt +++ b/feature/src/main/java/com/terning/feature/filtering/filtering/FilteringOneScreen.kt @@ -15,11 +15,11 @@ import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.dp -import androidx.hilt.navigation.compose.hiltViewModel import androidx.navigation.NavController import com.terning.core.designsystem.component.button.RectangleButton import com.terning.core.designsystem.component.image.TerningImage import com.terning.core.designsystem.component.topappbar.BackButtonTopAppBar +import com.terning.core.designsystem.theme.Grey300 import com.terning.core.designsystem.theme.TerningTheme import com.terning.feature.R import com.terning.feature.filtering.filtering.component.StatusOneRadioGroup @@ -30,7 +30,6 @@ fun FilteringOneScreen( name: String, navController: NavController, modifier: Modifier = Modifier, - viewModel: FilteringViewModel = hiltViewModel(), onButtonClick: (Int) -> Unit = {}, ) { val isButtonValid = remember { mutableStateOf(false) } @@ -74,6 +73,7 @@ fun FilteringOneScreen( name ), style = TerningTheme.typography.body5, + color = Grey300, modifier = modifier.padding( top = 3.dp, start = 24.dp, diff --git a/feature/src/main/java/com/terning/feature/filtering/filtering/FilteringThreeScreen.kt b/feature/src/main/java/com/terning/feature/filtering/filtering/FilteringThreeScreen.kt index 51c1a204e..116d67782 100644 --- a/feature/src/main/java/com/terning/feature/filtering/filtering/FilteringThreeScreen.kt +++ b/feature/src/main/java/com/terning/feature/filtering/filtering/FilteringThreeScreen.kt @@ -18,13 +18,13 @@ import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.dp import androidx.hilt.navigation.compose.hiltViewModel import androidx.lifecycle.compose.LocalLifecycleOwner -import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.lifecycle.flowWithLifecycle import androidx.navigation.NavController import com.terning.core.designsystem.component.button.RectangleButton import com.terning.core.designsystem.component.datepicker.DatePickerUI import com.terning.core.designsystem.component.image.TerningImage import com.terning.core.designsystem.component.topappbar.BackButtonTopAppBar +import com.terning.core.designsystem.theme.Grey300 import com.terning.core.designsystem.theme.TerningTheme import com.terning.core.extension.toast import com.terning.feature.R @@ -39,7 +39,6 @@ fun FilteringThreeScreen( modifier: Modifier = Modifier, viewModel: FilteringViewModel = hiltViewModel(), ) { - val state by viewModel.state.collectAsStateWithLifecycle() val context = LocalContext.current val lifecycleOwner = LocalLifecycleOwner.current @@ -101,6 +100,7 @@ fun FilteringThreeScreen( Text( text = stringResource(id = R.string.filtering_status3_sub), style = TerningTheme.typography.body5, + color = Grey300, modifier = modifier.padding( top = 3.dp, start = 24.dp, diff --git a/feature/src/main/java/com/terning/feature/filtering/filtering/FilteringTwoScreen.kt b/feature/src/main/java/com/terning/feature/filtering/filtering/FilteringTwoScreen.kt index fd56e08cd..92d865285 100644 --- a/feature/src/main/java/com/terning/feature/filtering/filtering/FilteringTwoScreen.kt +++ b/feature/src/main/java/com/terning/feature/filtering/filtering/FilteringTwoScreen.kt @@ -15,11 +15,11 @@ import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.dp -import androidx.hilt.navigation.compose.hiltViewModel import androidx.navigation.NavController import com.terning.core.designsystem.component.button.RectangleButton import com.terning.core.designsystem.component.image.TerningImage import com.terning.core.designsystem.component.topappbar.BackButtonTopAppBar +import com.terning.core.designsystem.theme.Grey300 import com.terning.core.designsystem.theme.TerningTheme import com.terning.feature.R import com.terning.feature.filtering.filtering.component.StatusTwoRadioGroup @@ -27,16 +27,15 @@ import com.terning.feature.filtering.filtering.navigation.navigateFilteringThree @Composable fun FilteringTwoScreen( - grade : Int, + grade: Int, navController: NavController, modifier: Modifier = Modifier, - viewModel: FilteringViewModel = hiltViewModel(), onButtonClick: (Int) -> Unit = {}, ) { val isButtonValid = remember { mutableStateOf(false) } - var workingPeriod by remember{ mutableIntStateOf(-1) } + var workingPeriod by remember { mutableIntStateOf(-1) } Scaffold( modifier = modifier, @@ -69,6 +68,7 @@ fun FilteringTwoScreen( Text( text = stringResource(id = R.string.filtering_status2_sub), style = TerningTheme.typography.body5, + color = Grey300, modifier = modifier.padding( top = 3.dp, start = 24.dp, @@ -76,20 +76,12 @@ fun FilteringTwoScreen( ) ) StatusTwoRadioGroup( - onButtonClick = {index -> + onButtonClick = { index -> onButtonClick(index) isButtonValid.value = true workingPeriod = index } ) - Text( - text = stringResource(id = R.string.filtering_status1_warning), - style = TerningTheme.typography.detail3, - modifier = modifier.padding( - start = 24.dp, - top = 9.dp - ) - ) Spacer(modifier = modifier.weight(1f)) RectangleButton( style = TerningTheme.typography.button0, From 9aaffc2a60c75e97c7866dd4925de0b75cd64cec Mon Sep 17 00:00:00 2001 From: LEE YOU BIN Date: Fri, 19 Jul 2024 11:35:33 +0900 Subject: [PATCH 4/7] =?UTF-8?q?[FIX/#152]=20=EB=A7=88=EC=9D=B4=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EB=9D=BC=EC=9D=B4=ED=8C=85=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- feature/src/main/res/values/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feature/src/main/res/values/strings.xml b/feature/src/main/res/values/strings.xml index 5a2a3746f..3a6d4afff 100644 --- a/feature/src/main/res/values/strings.xml +++ b/feature/src/main/res/values/strings.xml @@ -133,7 +133,7 @@ %s님 - 공지사항 + 약관 및 정책 의견 보내기 버전정보 로그아웃 From f666c03071d2a69719aa7b170c66adc71de47f31 Mon Sep 17 00:00:00 2001 From: LEE YOU BIN Date: Fri, 19 Jul 2024 19:42:01 +0900 Subject: [PATCH 5/7] =?UTF-8?q?[FIX/#152]=20=ED=9A=8C=EC=9B=90=EA=B0=80?= =?UTF-8?q?=EC=9E=85=20=EC=9E=85=EB=A0=A5=20=EB=A1=9C=EC=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../textfield/TerningBasicTextField.kt | 2 +- .../onboarding/signup/SignUpViewModel.kt | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/textfield/TerningBasicTextField.kt b/core/src/main/java/com/terning/core/designsystem/component/textfield/TerningBasicTextField.kt index fd3bab05d..67c799550 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/textfield/TerningBasicTextField.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/textfield/TerningBasicTextField.kt @@ -61,7 +61,7 @@ fun TerningBasicTextField( BasicTextField( value = value, onValueChange = { - if (maxTextLength == null || it.length <= maxTextLength) { + if (maxTextLength == null || it.length <= maxTextLength + 1) { onValueChange(it) } }, diff --git a/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpViewModel.kt b/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpViewModel.kt index 7b3a1e170..15e268a75 100644 --- a/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpViewModel.kt +++ b/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpViewModel.kt @@ -34,7 +34,15 @@ class SignUpViewModel @Inject constructor( fun isInputValid(name: String) { val nameErrorRegex = Regex(NAME_ERROR) - val trimmedName = if (name.length > MAX_LENGTH) name.substring(0, MAX_LENGTH) else name +// val outOfBoundName = if(name.length > MAX_LENGTH + 1) name.substring(0, MAX_LENGTH) else name + var trimmedName : String = "" + var trimmedNameOutOfBound : String = "" + var outOfBoundName : Boolean = false + if(name.length > MAX_LENGTH) { + trimmedName = name.substring(0, MAX_LENGTH) + trimmedNameOutOfBound = name.substring(0, MAX_LENGTH + 1) + outOfBoundName = true + }else trimmedName = name when { nameErrorRegex.containsMatchIn(trimmedName) -> _state.value = _state.value.copy( @@ -55,6 +63,15 @@ class SignUpViewModel @Inject constructor( isButtonValid = false ) + outOfBoundName -> _state.value = _state.value.copy( + name = trimmedNameOutOfBound, + drawLineColor = WarningRed, + helper = R.string.sign_up_helper, + helperIcon = R.drawable.ic_sign_up_error, + helperColor = WarningRed, + isButtonValid = false + ) + else -> _state.value = _state.value.copy( name = trimmedName, drawLineColor = TerningMain, From f3727b39e4b95d22d60ab5bacc595d46630d42e7 Mon Sep 17 00:00:00 2001 From: LEE YOU BIN Date: Fri, 19 Jul 2024 19:46:44 +0900 Subject: [PATCH 6/7] =?UTF-8?q?[FIX/#152]=20=ED=9A=8C=EC=9B=90=EA=B0=80?= =?UTF-8?q?=EC=9E=85=20=EC=9E=85=EB=A0=A5=20=EB=A1=9C=EC=A7=81=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../onboarding/signup/SignUpViewModel.kt | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpViewModel.kt b/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpViewModel.kt index 15e268a75..86a944511 100644 --- a/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpViewModel.kt +++ b/feature/src/main/java/com/terning/feature/onboarding/signup/SignUpViewModel.kt @@ -34,15 +34,12 @@ class SignUpViewModel @Inject constructor( fun isInputValid(name: String) { val nameErrorRegex = Regex(NAME_ERROR) -// val outOfBoundName = if(name.length > MAX_LENGTH + 1) name.substring(0, MAX_LENGTH) else name - var trimmedName : String = "" - var trimmedNameOutOfBound : String = "" - var outOfBoundName : Boolean = false - if(name.length > MAX_LENGTH) { + var trimmedName = "" + var outOfBoundName = false + if (name.length > MAX_LENGTH) { trimmedName = name.substring(0, MAX_LENGTH) - trimmedNameOutOfBound = name.substring(0, MAX_LENGTH + 1) outOfBoundName = true - }else trimmedName = name + } else trimmedName = name when { nameErrorRegex.containsMatchIn(trimmedName) -> _state.value = _state.value.copy( @@ -64,11 +61,11 @@ class SignUpViewModel @Inject constructor( ) outOfBoundName -> _state.value = _state.value.copy( - name = trimmedNameOutOfBound, - drawLineColor = WarningRed, + name = trimmedName, + drawLineColor = Grey500, helper = R.string.sign_up_helper, - helperIcon = R.drawable.ic_sign_up_error, - helperColor = WarningRed, + helperIcon = null, + helperColor = Grey400, isButtonValid = false ) From eb1f735e461ee24cd3462f45a23b7bc245e42ca9 Mon Sep 17 00:00:00 2001 From: LEE YOU BIN Date: Fri, 19 Jul 2024 21:06:32 +0900 Subject: [PATCH 7/7] =?UTF-8?q?[FIX/#152]=20=EB=8D=B0=EC=9D=B4=ED=8A=B8?= =?UTF-8?q?=ED=94=BC=EC=BB=A4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designsystem/component/datepicker/DatePicker.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/datepicker/DatePicker.kt b/core/src/main/java/com/terning/core/designsystem/component/datepicker/DatePicker.kt index 511d2f3df..c0c133587 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/datepicker/DatePicker.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/datepicker/DatePicker.kt @@ -8,7 +8,6 @@ import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height -import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.foundation.lazy.LazyColumn @@ -94,7 +93,7 @@ fun DateItemsPicker( firstIndex: Int, onItemSelected: (String) -> Unit, modifier: Modifier = Modifier, - isYear: Boolean, + isYear: Boolean ) { val listState = rememberLazyListState(firstIndex) val currentValue = remember { mutableStateOf("") } @@ -134,6 +133,7 @@ fun DateItemsPicker( if (it == firstVisibleItemIndex + 1) { currentValue.value = items[index] } + Spacer(modifier = Modifier.height(7.dp)) Text( text = when (isYear) { @@ -142,10 +142,10 @@ fun DateItemsPicker( }, style = TerningTheme.typography.title3, color = if (it == firstVisibleItemIndex + 1) Grey500 else Grey300, - textAlign = TextAlign.Center, - modifier = modifier.padding(vertical = 8.dp) + textAlign = TextAlign.Center ) + Spacer(modifier = Modifier.height(7.dp)) } } } -} +} \ No newline at end of file