라이브 상세 페이지 추가

This commit is contained in:
Yu Sung
2023-08-14 19:22:23 +09:00
parent e0a5fb733d
commit 634f50d4f2
37 changed files with 2767 additions and 49 deletions

View File

@@ -73,19 +73,22 @@ struct LiveView: View {
height: viewModel.eventBannerItems.count > 0 ? screenSize().width * 300 / 1000 : 0,
alignment: .center
)
.padding(.vertical, 40)
.padding(.top, 40)
}
if viewModel.liveReservationItems.count > 0 {
SectionLiveReservationView(
items: viewModel.liveReservationItems,
onClickCancel: { viewModel.getSummary() },
onClickStart: {_ in},
onClickReservation: {_ in},
onClickStart: { roomId in processStart(roomId: roomId) },
onClickReservation: { roomId in
viewModel.reservationLiveRoom(roomId: roomId)
},
onTapCreateLive: {
AppState.shared.setAppStep(step: .createLive(timeSettingMode: .RESERVATION, onSuccess: onCreateSuccess))
}
)
.padding(.top, 40)
}
}
}