Skip to content

Commit

Permalink
[design] #167 미분류 링크 없을 시 정렬 버튼 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Dec 9, 2024
1 parent bfe5652 commit d6f7e82
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Projects/Feature/FeaturePokit/Sources/PokitRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ private extension PokitRootView {

Spacer()

PokitIconLTextLink(
store.sortType == .sort(.최신순) ?
"최신순" : store.folderType == .folder(.포킷) ? "이름순" : "오래된순",
icon: .icon(.align),
action: { send(.분류_버튼_눌렀을때) }
)
.contentTransition(.numericText())
if !store.contents.isEmpty {
PokitIconLTextLink(
store.sortType == .sort(.최신순) ?
"최신순" : store.folderType == .folder(.포킷) ? "이름순" : "오래된순",
icon: .icon(.align),
action: { send(.분류_버튼_눌렀을때) }
)
.contentTransition(.numericText())
}
}
.animation(.snappy(duration: 0.7), value: store.folderType)
}
Expand Down

0 comments on commit d6f7e82

Please sign in to comment.