0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 17:18:21 -05:00

🐛 Remove 'graphics' option from assets filter on new UI

This commit is contained in:
Pablo Alba 2023-11-17 11:56:07 +01:00 committed by Andrey Antukh
parent a0870624b6
commit d2b207f306

View file

@ -148,7 +148,8 @@
on-menu-close
(mf/use-fn #(swap! filters* assoc :open-menu false))
options [{:option-name (tr "workspace.assets.box-filter-all")
options (into [] (remove nil?
[{:option-name (tr "workspace.assets.box-filter-all")
:id "section-all"
:option-handler on-section-filter-change
:data-test "all"}
@ -158,10 +159,11 @@
:option-handler on-section-filter-change
:data-test "components"}
(when (not components-v2)
{:option-name (tr "workspace.assets.graphics")
:id "section-graphics"
:option-handler on-section-filter-change
:data-test "graphics"}
:data-test "graphics"})
{:option-name (tr "workspace.assets.colors")
:id "section-color"
@ -171,7 +173,7 @@
{:option-name (tr "workspace.assets.typography")
:id "section-typography"
:option-handler on-section-filter-change
:data-test "typographies"}]]
:data-test "typographies"}]))]
(if ^boolean new-css-system
[:div {:class (stl/css :assets-bar)}