Skip to content

Commit

Permalink
[Fix] Runnect#134 - level을 스트링으로 변경 및 디테일뷰에 courseId 주입
Browse files Browse the repository at this point in the history
  • Loading branch information
lsj8706 committed May 19, 2023
1 parent d9ad297 commit c1a4537
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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

0 comments on commit c1a4537

Please sign in to comment.