generated from GSM-MSG/MSG-Repository-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #364 from School-of-Company/361-withdraw-user-page
🔀 :: [#361] 탈퇴 예정자 명단 페이지 디자인 변경사항 적용
- Loading branch information
Showing
12 changed files
with
216 additions
and
198 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
App/Sources/DesignSystem/Button/DeactivateButton/DeactivateButton.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import SwiftUI | ||
|
||
public struct DeactivateButton: View { | ||
let text: String | ||
let action: () -> Void | ||
|
||
public init( | ||
text: String, | ||
action: @escaping () -> Void = {} | ||
) { | ||
self.text = text | ||
self.action = action | ||
} | ||
|
||
public var body: some View { | ||
HStack(spacing: 10) { | ||
BitgouelAsset.Icons.minusFill.swiftUIImage | ||
.renderingMode(.template) | ||
|
||
BitgouelText( | ||
text: text, | ||
font: .text2 | ||
) | ||
} | ||
.foregroundColor(.white) | ||
.padding(.vertical, 12) | ||
.padding(.horizontal, 68) | ||
.background(Color.bitgouel(.error(.e5))) | ||
.cornerRadius(8, corners: .allCorners) | ||
.buttonWrapper(action) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
.../Feature/WithdrawUserListFeature/Source/Component/BottomSheet/UserCohortBottomSheet.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import Service | ||
import SwiftUI | ||
|
||
struct UserCohortBottomSheet: View { | ||
let currentYear: Int | ||
var selectedCohort: Int | ||
let onCohortSelect: (Int) -> Void | ||
let cancel: (Bool) -> Void | ||
|
||
var body: some View { | ||
VStack(spacing: 8) { | ||
HStack { | ||
BitgouelText( | ||
text: "기수", | ||
font: .title3 | ||
) | ||
|
||
Spacer() | ||
|
||
Button { | ||
cancel(false) | ||
} label: { | ||
BitgouelAsset.Icons.cancel.swiftUIImage | ||
} | ||
} | ||
.padding(.top, 24) | ||
|
||
Spacer() | ||
|
||
ScrollView { | ||
VStack(spacing: 16) { | ||
ForEach(2022...currentYear, id: \.self) { cohort in | ||
userCohortTypeRow( | ||
cohort: cohort - 2021, | ||
selectedCohort: selectedCohort, | ||
onCohortSelect: onCohortSelect | ||
) | ||
} | ||
|
||
Spacer() | ||
} | ||
} | ||
} | ||
.padding(.horizontal, 24) | ||
} | ||
|
||
@ViewBuilder | ||
func userCohortTypeRow( | ||
cohort: Int, | ||
selectedCohort: Int?, | ||
onCohortSelect: @escaping (Int) -> Void | ||
) -> some View { | ||
HStack { | ||
Text("\(cohort)기") | ||
|
||
Spacer() | ||
|
||
BitgouelRadioButton( | ||
isSelected: Binding( | ||
get: { selectedCohort == cohort }, | ||
set: { isSelected in | ||
if isSelected { | ||
onCohortSelect(cohort) | ||
} | ||
} | ||
) | ||
) | ||
} | ||
.padding(.vertical, 24) | ||
.onTapGesture { | ||
onCohortSelect(cohort) | ||
} | ||
} | ||
} |
82 changes: 0 additions & 82 deletions
82
App/Sources/Feature/WithdrawUserListFeature/Source/Component/UserCohortFilterPopup.swift
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.