Skip to content

Commit

Permalink
♻️ :: [#391] SchoolListResponseDTO / Departments Type [String]으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuunseo committed Jul 31, 2024
1 parent 430db6a commit c629113
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import SwiftUI

struct CreatedClubSuccessView: View {
let dismiss: () -> Void

var body: some View {
VStack {
BitgouelAsset.Icons.check.swiftUIImage
.padding(.top, 233)

Text("학교 등록 완료")
.bitgouelFont(.title2)
.padding(.top, 24)

Text("새 학교를 등록했습니다.")
.bitgouelFont(.text3, color: .greyscale(.g4))

BitgouelButton(
text: "돌아가기"
) {
dismiss()
}
.cornerRadius(8)
.padding(.horizontal, 28)
.padding(.bottom, 46)
}
.navigationBarBackButtonHidden(true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public struct SchoolListResponseDTO: Decodable {
public let schoolID: Int
public let schoolName: String
public let line: LineType
public let departments: [DepartmentResponseDTO]
public let departments: [String]
public let logoImageURL: String
public let clubs: [SchoolWithClubsResponseDTO]

Expand All @@ -24,7 +24,7 @@ extension SchoolListResponseDTO {
schoolID: schoolID,
schoolName: schoolName,
line: line,
departments: departments.map { $0.toDomain() },
departments: departments,
logoImageURL: logoImageURL,
clubs: clubs.map { $0.toDomain() }
)
Expand Down

0 comments on commit c629113

Please sign in to comment.