mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 19:37:13 +02:00
Rename
This commit is contained in:
parent
1d599cbf7d
commit
293250a30d
1 changed files with 8 additions and 8 deletions
|
@ -17,7 +17,7 @@
|
||||||
[app.util.dom :as dom]
|
[app.util.dom :as dom]
|
||||||
[rumext.v2 :as mf]))
|
[rumext.v2 :as mf]))
|
||||||
|
|
||||||
(mf/defc list-items
|
(mf/defc themes-list
|
||||||
[{:keys [themes active-theme-ids on-close grouped?]}]
|
[{:keys [themes active-theme-ids on-close grouped?]}]
|
||||||
(when (seq themes)
|
(when (seq themes)
|
||||||
[:ul
|
[:ul
|
||||||
|
@ -42,17 +42,17 @@
|
||||||
grouped-themes (dissoc ordered-themes nil)
|
grouped-themes (dissoc ordered-themes nil)
|
||||||
ungrouped-themes (get ordered-themes nil)]
|
ungrouped-themes (get ordered-themes nil)]
|
||||||
[:ul
|
[:ul
|
||||||
[:& list-items {:themes ungrouped-themes
|
[:& themes-list {:themes ungrouped-themes
|
||||||
:active-theme-ids active-theme-ids
|
:active-theme-ids active-theme-ids
|
||||||
:on-close on-close}]
|
:on-close on-close}]
|
||||||
(for [[group themes] grouped-themes]
|
(for [[group themes] grouped-themes]
|
||||||
[:li {:key group}
|
[:li {:key group}
|
||||||
(when group
|
(when group
|
||||||
[:span {:class (stl/css :group)} group])
|
[:span {:class (stl/css :group)} group])
|
||||||
[:& list-items {:themes themes
|
[:& themes-list {:themes themes
|
||||||
:active-theme-ids active-theme-ids
|
:active-theme-ids active-theme-ids
|
||||||
:on-close on-close
|
:on-close on-close
|
||||||
:grouped? true}]])
|
:grouped? true}]])
|
||||||
[:li {:class (stl/css-case :checked-element true
|
[:li {:class (stl/css-case :checked-element true
|
||||||
:checked-element-button true)
|
:checked-element-button true)
|
||||||
:on-click #(modal/show! :tokens/themes {})}
|
:on-click #(modal/show! :tokens/themes {})}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue