feat(series-all): 시리즈 전체보기 UI 수정
- 기존 3단 구성에서 2단 구성으로 변경 - NavigationBar 제목에 OOO님의 시리즈 전체보기로 변경
This commit is contained in:
@@ -9,6 +9,7 @@ import SwiftUI
|
||||
|
||||
struct UserProfileSeriesView: View {
|
||||
let creatorId: Int
|
||||
let creatorNickname: String
|
||||
let items: [SeriesListItem]
|
||||
|
||||
var body: some View {
|
||||
@@ -25,7 +26,7 @@ struct UserProfileSeriesView: View {
|
||||
.foregroundColor(Color(hex: "78909C"))
|
||||
.onTapGesture {
|
||||
AppState.shared
|
||||
.setAppStep(step: .seriesAll(creatorId: creatorId))
|
||||
.setAppStep(step: .seriesAll(creatorId: creatorId, creatorNickname: creatorNickname))
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 24)
|
||||
@@ -46,6 +47,7 @@ struct UserProfileSeriesView: View {
|
||||
#Preview {
|
||||
UserProfileSeriesView(
|
||||
creatorId: 1,
|
||||
creatorNickname: "",
|
||||
items: [
|
||||
SeriesListItem(
|
||||
seriesId: 1,
|
||||
|
||||
@@ -328,6 +328,7 @@ struct UserProfileView: View {
|
||||
if !creatorProfile.seriesList.isEmpty {
|
||||
UserProfileSeriesView(
|
||||
creatorId: creatorProfile.creator.creatorId,
|
||||
creatorNickname: creatorProfile.creator.nickname,
|
||||
items: creatorProfile.seriesList
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user