improve(marketplace): add indicator for sorter

This commit is contained in:
charlie
2022-01-11 12:11:07 +08:00
committed by Andelf
parent f95ba84204
commit 9a7698c966
2 changed files with 16 additions and 2 deletions

View File

@@ -355,8 +355,8 @@
(ui/dropdown-with-links
(fn [{:keys [toggle-fn]}]
(ui/button
[:span (ui/icon "arrows-sort") ""]
:class "sort-by"
[:span (ui/icon "arrows-sort")]
:class (str (when-not (contains? #{:enabled :downloads} sort-by) "picked ") "sort-by")
:on-click toggle-fn
:intent "link"))
(let [aim-icon #(if (= sort-by %) "check" "circle")]