Skip to content

Commit

Permalink
✨[feat]: 탈퇴한 유저 처러 #13
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy-wonji committed Oct 2, 2024
1 parent cf211b4 commit 6b4e5e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ public struct Home {
case .sorted(let sortedOrderEnum):
state.selectedItem = state.selectedSorted.sortedKoreanString
}
return .run { @MainActor send in
send(.destination(.presented(.homeFilter(.async(.fetchListByFilterEnum(filterEnum))))))
return .run { send in
await send(.destination(.presented(.homeFilter(.async(.fetchListByFilterEnum(filterEnum))))))
}

case .presntEditQuestion:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ extension CardItemView {
.overlay {
VStack {
cardHeaderView(
nickName: resultData.userInfo?.userNickname ?? "탈퇴 한 유저",
nickName: resultData.userInfo?.userNickname ?? "",
job: resultData.userInfo?.userJob ?? "",
generation: resultData.userInfo?.userGeneration ?? ""
)
Expand Down Expand Up @@ -226,8 +226,6 @@ extension CardItemView {
return ceil(boundingBox.height) + 20
}



@ViewBuilder
private func cardHeaderView(
nickName: String,
Expand All @@ -239,7 +237,7 @@ extension CardItemView {
.frame(height: 32)

HStack {
Text(nickName)
Text(nickName.isEmpty ? "탈퇴 한 유저" : nickName)
.pretendardFont(family: .Bold, size: 20)
.foregroundStyle(Color.basicWhite)

Expand Down Expand Up @@ -271,7 +269,7 @@ extension CardItemView {
.frame(height: 3)

HStack {
Text(job)
Text(job.isEmpty ? "기타" : job)
.pretendardFont(family: .Regular, size: 14)
.foregroundStyle(Color.gray200)

Expand Down Expand Up @@ -330,14 +328,14 @@ extension CardItemView {
Spacer()
.frame(height: 16)

// Check for excessive line breaks and clean up if needed
let processedTitle = handleExcessiveLineBreaks(in: title)

Text(processedTitle)
.pretendardFont(family: .Bold, size: 28)
.foregroundStyle(Color.basicWhite)
.multilineTextAlignment(.center)
.padding(.horizontal, 24)
.minimumScaleFactor(0.7)

Spacer()
.frame(height: 16)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public struct FlippableCardView<Content: View, T>: View {
let content: (T) -> Content
let onAppearLastItem: (() -> Void)?
let onItemAppear: ((T) -> Void)?
let shouldSaveState: Bool // Parameter to control if the state should be saved
let shouldSaveState: Bool

@AppStorage("lastViewedPage") private var lastViewedPage: Int = 0
@GestureState private var dragOffset: CGFloat = 0
Expand Down

0 comments on commit 6b4e5e6

Please sign in to comment.