Skip to content

Commit

Permalink
feat: change time table map key type to Pair
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkJong-Hun committed Aug 11, 2024
1 parent 1e3464c commit 5128d30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ fun PreviewTimetableScreenDark() {
contentUiState = TimetableSheetUiState.ListTimetable(
mapOf(
DroidKaigi2024Day.Workday to TimetableListUiState(
mapOf<String, List<TimetableItem>>().toPersistentMap(),
mapOf<Pair<String, String>, List<TimetableItem>>().toPersistentMap(),
Timetable(),
),
DroidKaigi2024Day.ConferenceDay1 to TimetableListUiState(
mapOf<String, List<TimetableItem>>().toPersistentMap(),
mapOf<Pair<String, String>, List<TimetableItem>>().toPersistentMap(),
Timetable(),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fun timetableSheet(
days = listOf(day),
),
).timetableItems.groupBy {
it.startsTimeString + it.endsTimeString
it.startsTimeString to it.endsTimeString
}.mapValues { entries ->
entries.value.sortedWith(
compareBy({ it.day?.name.orEmpty() }, { it.startsTimeString }),
Expand Down

0 comments on commit 5128d30

Please sign in to comment.