Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
feat :: 북마크에 겨울인턴 네비게이터 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HongSJae committed Nov 22, 2023
1 parent 6a90480 commit 9c0596f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
36 changes: 26 additions & 10 deletions Projects/Feature/BookmarkListFeature/Sources/BookmarkListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,27 @@ struct BookmarkListView: View {
} else {
Spacer()

Text("아직 북마크한 모집의뢰서가 없어요.")
.JOBISFont(.body(.body4), color: .Sub.gray90)
VStack(spacing: 16) {
Text("아직 북마크한 모집의뢰서가 없어요.")
.JOBISFont(.body(.body4), color: .Sub.gray90)

Button {
viewModel.isNavigateRecruitmentView.toggle()
} label: {
Text("모집의뢰서 보러가기 >")
.JOBISFont(.etc(.caption), color: .Sub.gray60)
.underlineText(color: .Sub.gray60)
VStack(spacing: 8) {
Button {
viewModel.isNavigateRecruitmentView.toggle()
} label: {
Text("모집의뢰서 보러가기 >")
.JOBISFont(.etc(.caption), color: .Sub.gray60)
.underlineText(color: .Sub.gray60)
}

Button {
viewModel.isNavigateWinterIntern.toggle()
} label: {
Text("겨울인턴 보러가기 >")
.JOBISFont(.etc(.caption), color: .Sub.gray60)
.underlineText(color: .Sub.gray60)
}
}
}
}
} else {
Expand All @@ -69,7 +81,7 @@ struct BookmarkListView: View {
tabbarHidden.wrappedValue = newValue
}
}
.onChange(of: viewModel.isNavigateRecruitmentView) { newValue in
.onChange(of: viewModel.isNavigateRecruitmentView || viewModel.isNavigateWinterIntern) { newValue in
withAnimation {
tabbarHidden.wrappedValue = newValue
}
Expand All @@ -81,9 +93,13 @@ struct BookmarkListView: View {
when: $viewModel.isNavigateRecruitmentDetail
)
.navigate(
to: recruitmentFactory.makeView().eraseToAnyView(),
to: recruitmentFactory.makeView(winterIntern: false).eraseToAnyView(),
when: $viewModel.isNavigateRecruitmentView
)
.navigate(
to: recruitmentFactory.makeView(winterIntern: true).eraseToAnyView(),
when: $viewModel.isNavigateWinterIntern
)
.navigationTitle("북마크한 모집의뢰서")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ final class BookmarkListViewModel: BaseViewModel {
@Published var bookmarkList: [BookmarkEntity] = []
@Published var recruitmentID: Int = 0
@Published var isNavigateRecruitmentView: Bool = false
@Published var isNavigateWinterIntern: Bool = false
@Published var isNavigateRecruitmentDetail: Bool = false
@Published var isFetchingBookmarkList: Bool = true

Expand Down

0 comments on commit 9c0596f

Please sign in to comment.