mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
formatting
This commit is contained in:
parent
b3e939d12a
commit
2487f34b72
2 changed files with 16 additions and 16 deletions
|
@ -90,12 +90,12 @@
|
||||||
(when (and children (not @collapsed?))
|
(when (and children (not @collapsed?))
|
||||||
[:div {:class (stl/css :set-children)}
|
[:div {:class (stl/css :set-children)}
|
||||||
(for [child-id children]
|
(for [child-id children]
|
||||||
[:& sets-tree {:key child-id :set-id child-id :selected-set-id selected-set-id}])])]))))
|
[:& sets-tree {:key child-id :set-id child-id :selected-set-id selected-set-id}])])]))))
|
||||||
|
|
||||||
(mf/defc sets-list
|
(mf/defc sets-list
|
||||||
[{:keys [selected-set-id]}]
|
[{:keys [selected-set-id]}]
|
||||||
[:ul {:class (stl/css :sets-list)}
|
[:ul {:class (stl/css :sets-list)}
|
||||||
(for [set-id sets-root-order]
|
(for [set-id sets-root-order]
|
||||||
[:& sets-tree {:key set-id
|
[:& sets-tree {:key set-id
|
||||||
:set-id set-id
|
:set-id set-id
|
||||||
:selected-set-id selected-set-id}])])
|
:selected-set-id selected-set-id}])])
|
||||||
|
|
|
@ -193,13 +193,13 @@
|
||||||
::mf/wrap-props false}
|
::mf/wrap-props false}
|
||||||
[_props]
|
[_props]
|
||||||
(let [show-sets-section? false] ;; temporarily added this variable to see/hide the sets section till we have it working end to end
|
(let [show-sets-section? false] ;; temporarily added this variable to see/hide the sets section till we have it working end to end
|
||||||
[:div {:class (stl/css :sidebar-tab-wrapper)}
|
[:div {:class (stl/css :sidebar-tab-wrapper)}
|
||||||
(when show-sets-section?
|
(when show-sets-section?
|
||||||
[:div {:class (stl/css :sets-section-wrapper)}
|
[:div {:class (stl/css :sets-section-wrapper)}
|
||||||
[:& sets-sidebar]])
|
[:& sets-sidebar]])
|
||||||
[:div {:class (stl/css :tokens-section-wrapper)}
|
[:div {:class (stl/css :tokens-section-wrapper)}
|
||||||
[:& tokens-explorer]]
|
[:& tokens-explorer]]
|
||||||
[:button {:class (stl/css :download-json-button)
|
[:button {:class (stl/css :download-json-button)
|
||||||
:on-click wtc/download-tokens-as-json}
|
:on-click wtc/download-tokens-as-json}
|
||||||
download-icon
|
download-icon
|
||||||
"Export JSON"]]))
|
"Export JSON"]]))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue