Skip to content

Commit

Permalink
fix parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
ry-itto committed Aug 2, 2023
1 parent bb1d08e commit 108de7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions app-ios/Modules/Sources/Timetable/TimetableListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import Model
import SwiftUI

struct TimetableListView: View {
let timeGroupTimetableItems: [TimetableTimeGroupItems]
let timetableTimeGroupItems: [TimetableTimeGroupItems]

var body: some View {
VStack(spacing: 0) {
ForEach(timeGroupTimetableItems) { timetableTimeGroupItems in
ForEach(timetableTimeGroupItems) { timetableTimeGroupItem in
HStack(alignment: .top, spacing: 16) {
SessionTimeView(
startsAt: timetableTimeGroupItems.startsAt,
endsAt: timetableTimeGroupItems.endsAt
startsAt: timetableTimeGroupItem.startsAt,
endsAt: timetableTimeGroupItem.endsAt
)
VStack(spacing: 0) {
ForEach(timetableTimeGroupItems.items, id: \.timetableItem.id.value) { timetableItemWithFavorite in
ForEach(timetableTimeGroupItem.items, id: \.timetableItem.id.value) { timetableItemWithFavorite in
NavigationLink(value: timetableItemWithFavorite.timetableItem) {
TimetableListItemView(
timetableItemWithFavorite: timetableItemWithFavorite
Expand All @@ -22,8 +22,7 @@ struct TimetableListView: View {
}
}
}
.padding(.horizontal, 8)
.padding(.vertical, 8)
.padding(8)
Divider()
}
}
Expand All @@ -36,7 +35,7 @@ import shared

#Preview {
TimetableListView(
timeGroupTimetableItems: [
timetableTimeGroupItems: [
TimetableTimeGroupItems(
duration: .init(
startsAt: Timetable.companion.fake().contents.first!.timetableItem.startsAt,
Expand Down
2 changes: 1 addition & 1 deletion app-ios/Modules/Sources/Timetable/TimetableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public struct TimetableView<SessionView: View>: View {
viewModel.selectDay(day: $0)
}
) {
TimetableListView(timeGroupTimetableItems: state)
TimetableListView(timetableTimeGroupItems: state)
}
}
.background(AssetColors.Surface.surface.swiftUIColor)
Expand Down

0 comments on commit 108de7d

Please sign in to comment.