Skip to content

Commit

Permalink
[FIX/#152] 데이트피커 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Jul 19, 2024
1 parent f3727b3 commit eb1f735
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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("") }
Expand Down Expand Up @@ -134,6 +133,7 @@ fun DateItemsPicker(
if (it == firstVisibleItemIndex + 1) {
currentValue.value = items[index]
}
Spacer(modifier = Modifier.height(7.dp))
Text(
text =
when (isYear) {
Expand All @@ -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))
}
}
}
}
}

0 comments on commit eb1f735

Please sign in to comment.