Skip to content

Commit

Permalink
fixed date and day-name mismatch in Firey calendar type. (#171)
Browse files Browse the repository at this point in the history
* Update KalendarFirey.kt

fixed date and day name mismatch in Firey calendar type.

* Update KalendarFirey.kt
  • Loading branch information
Sudhir-Kanani committed Apr 6, 2024
1 parent 285a8f1 commit dccae91
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ internal fun KalendarFirey(
onErrorRangeSelected: (RangeSelectionError) -> Unit = {}
) {
val today = currentDay ?: Clock.System.todayIn(TimeZone.currentSystemDefault())
val weekValue = remember { mutableStateOf(today.getNext7Dates()) }
// val weekValue = remember { mutableStateOf(today.getNext7Dates()) }
val selectedRange = remember { mutableStateOf<KalendarSelectedDayRange?>(null) }
val selectedDate = remember { mutableStateOf(today) }
val displayedMonth = remember { mutableStateOf(today.month) }
Expand Down Expand Up @@ -144,12 +144,12 @@ internal fun KalendarFirey(
columns = GridCells.Fixed(7),
content = {
if (showLabel) {
items(weekValue.value) { item ->
items(DayOfWeek.values()) { item ->
Text(
modifier = Modifier,
color = kalendarDayKonfig.textColor,
fontSize = kalendarDayKonfig.textSize,
text = labelFormat(item.dayOfWeek),
text = labelFormat(item),
fontWeight = FontWeight.SemiBold,
textAlign = TextAlign.Center
)
Expand Down

0 comments on commit dccae91

Please sign in to comment.