Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct UploadedCourseDetailResponseDto: Codable {

struct UploadUser: Codable {
let nickname: String
let level: Int
let level: String
let image: String
let isNowUser: Bool?
}
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ extension UploadedCourseInfoVC: UICollectionViewDataSource {
guard collectionView.cellForItem(at: indexPath) is CourseListCVC else { return }
guard let selectedCells = collectionView.indexPathsForSelectedItems else { return }
guard let cell = collectionView.cellForItem(at: indexPath) as? CourseListCVC else { return }
let courseList = uploadedCourseList[indexPath.item]
let publicCourseModel = uploadedCourseList[indexPath.item]
if isEditMode {
self.deleteCourseButton.isEnabled = true
let countSelectCells = selectedCells.count
Expand All @@ -300,6 +300,7 @@ extension UploadedCourseInfoVC: UICollectionViewDataSource {
self.deleteCourseButton.setTitle(title: "삭제하기")
self.deleteCourseButton.setEnabled(true)
let courseDetailVC = CourseDetailVC()
courseDetailVC.setCourseId(courseId: publicCourseModel.courseId, publicCourseId: publicCourseModel.id)
courseDetailVC.hidesBottomBarWhenPushed = true
self.navigationController?.pushViewController(courseDetailVC, animated: true)
cell.selectCell(didSelect: false)
Expand Down