0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

🐛 Recover lost wrap icon

This commit is contained in:
Eva Marco 2024-03-12 14:04:41 +01:00 committed by Alonso Torres
parent c865a1bdfd
commit 37859a20a6
3 changed files with 9 additions and 20 deletions

View file

Before

Width:  |  Height:  |  Size: 253 B

After

Width:  |  Height:  |  Size: 253 B

View file

@ -61,8 +61,7 @@
.cursor-item div,
.icon-item-old svg {
fill: #aab5ba;
stroke: none;
stroke: #aab5ba;
}
.cursor-item {

View file

@ -284,24 +284,14 @@
{::mf/wrap-props false}
[]
(let [entries (->> (seq (js/Object.entries default))
(sort-by first))
refactor? (fn [[key]] (str/ends-with? key "Refactor"))]
[:*
[:section.debug-icons-preview
[:h2.subtitle-old "Classic (Deprecated)"]
(for [[key val] (remove refactor? entries)]
[:div.icon-item-old {:key key
:title key}
val
[:span key]])]
[:section.debug-icons-preview
[:h2 "Refactor"]
(for [[key val] (filter refactor? entries)]
[:div.icon-item {:key key
:title key}
val
[:span key]])]]))
(sort-by first))]
[:section.debug-icons-preview
[:h2 "icons"]
(for [[key val] entries]
[:div.icon-item-old {:key key
:title key}
val
[:span key]])]))
(defn key->icon
[icon-key]