File tree Expand file tree Collapse file tree
DevLog/UI/PushNotification Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,12 +85,11 @@ struct PushNotificationView: View {
8585 }
8686
8787 Button {
88- let next : PushNotificationViewModel . SortOption = viewModel. state. sortOption == . latest ? . oldest : . latest
89- viewModel. send ( . setSortOption( next) )
88+ viewModel. send ( . toggleSortOption)
9089 } label: {
9190 Text ( " 정렬: \( viewModel. state. sortOption. title) " )
9291 }
93- . adaptiveButtonStyle ( )
92+ . adaptiveButtonStyle ( viewModel . state . sortOption == . oldest ? . blue : . clear )
9493
9594 Menu {
9695 ForEach ( PushNotificationViewModel . TimeFilter. availableOptions, id: \. id) { option in
@@ -111,7 +110,7 @@ struct PushNotificationView: View {
111110 } label: {
112111 Text ( " 기간 " )
113112 }
114- . adaptiveButtonStyle ( )
113+ . adaptiveButtonStyle ( viewModel . state . timeFilter == . none ? . clear : . blue )
115114
116115 Button {
117116 viewModel. send ( . toggleUnreadOnly)
You can’t perform that action at this time.
0 commit comments