Skip to content

Commit d6f7e82

Browse files
committed
[design] #167 미분류 링크 없을 시 정렬 버튼 제거
1 parent bfe5652 commit d6f7e82

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Projects/Feature/FeaturePokit/Sources/PokitRootView.swift

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,15 @@ private extension PokitRootView {
8686

8787
Spacer()
8888

89-
PokitIconLTextLink(
90-
store.sortType == .sort(.최신순) ?
91-
"최신순" : store.folderType == .folder(.포킷) ? "이름순" : "오래된순",
92-
icon: .icon(.align),
93-
action: { send(.분류_버튼_눌렀을때) }
94-
)
95-
.contentTransition(.numericText())
89+
if !store.contents.isEmpty {
90+
PokitIconLTextLink(
91+
store.sortType == .sort(.최신순) ?
92+
"최신순" : store.folderType == .folder(.포킷) ? "이름순" : "오래된순",
93+
icon: .icon(.align),
94+
action: { send(.분류_버튼_눌렀을때) }
95+
)
96+
.contentTransition(.numericText())
97+
}
9698
}
9799
.animation(.snappy(duration: 0.7), value: store.folderType)
98100
}

0 commit comments

Comments
 (0)