Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kizitonwose committed Jan 18, 2025
1 parent 340a116 commit d3f4a15
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ internal fun LazyListScope.YearCalendarMonths(
YearContentHeightMode.Wrap -> false
YearContentHeightMode.Fill,
YearContentHeightMode.Stretch,
-> true
-> true
}
val hasYearContainer = yearContainer != null
yearContainer.or(defaultYearContainer)(year) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public class YearCalendarState internal constructor(
// Equal month height, we can multiply reliably.
YearContentHeightMode.Fill,
YearContentHeightMode.Stretch,
-> true
-> true
}

// Equal month width, we can multiply reliably.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ internal class YearItemPlacementInfo {
monthSpacing = monthVerticalSpacingPx,
dayOffsetInMonth = dayOffsetInMonth.y,
daySize = daySize.height,
dayBodyCount = month.weekDays.size
dayBodyCount = month.weekDays.size,
)

Orientation.Horizontal -> {
Expand All @@ -84,7 +84,7 @@ internal class YearItemPlacementInfo {
monthSpacing = monthHorizontalSpacingPx,
dayOffsetInMonth = dayOffsetInMonth.x,
daySize = daySize.width,
dayBodyCount = month.weekDays.first().size
dayBodyCount = month.weekDays.first().size,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import java.time.DayOfWeek
import java.time.LocalDate
import java.time.YearMonth


/**
* Creates a [CalendarState] that is remembered across compositions.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ internal fun LazyListScope.YearCalendarMonths(
YearContentHeightMode.Wrap -> false
YearContentHeightMode.Fill,
YearContentHeightMode.Stretch,
-> true
-> true
}
val hasYearContainer = yearContainer != null
yearContainer.or(defaultYearContainer)(year) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public class YearCalendarState internal constructor(
// Equal month height, we can multiply reliably.
YearContentHeightMode.Fill,
YearContentHeightMode.Stretch,
-> true
-> true
}

// Equal month width, we can multiply reliably.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ internal class YearItemPlacementInfo {
monthSpacing = monthVerticalSpacingPx,
dayOffsetInMonth = dayOffsetInMonth.y,
daySize = daySize.height,
dayBodyCount = month.weekDays.size
dayBodyCount = month.weekDays.size,
)

Orientation.Horizontal -> {
Expand All @@ -84,7 +84,7 @@ internal class YearItemPlacementInfo {
monthSpacing = monthHorizontalSpacingPx,
dayOffsetInMonth = dayOffsetInMonth.x,
daySize = daySize.width,
dayBodyCount = month.weekDays.first().size
dayBodyCount = month.weekDays.first().size,
)
}
}
Expand Down

0 comments on commit d3f4a15

Please sign in to comment.