0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

🐛 Remove graphics from assets filter for components v2

This commit is contained in:
Pablo Alba 2023-06-06 16:11:09 +02:00
parent 1632530b21
commit 69d3bda01f

View file

@ -2414,7 +2414,8 @@
{::mf/wrap [mf/memo]
::mf/wrap-props false}
[]
(let [read-only? (mf/use-ctx ctx/workspace-read-only?)
(let [components-v2 (mf/use-ctx ctx/components-v2)
read-only? (mf/use-ctx ctx/workspace-read-only?)
filters* (mf/use-state
{:term ""
:section :all
@ -2489,7 +2490,8 @@
:on-change on-section-filter-change}
[:option {:value ":all"} (tr "workspace.assets.box-filter-all")]
[:option {:value ":components"} (tr "workspace.assets.components")]
[:option {:value ":graphics"} (tr "workspace.assets.graphics")]
(when-not components-v2
[:option {:value ":graphics"} (tr "workspace.assets.graphics")])
[:option {:value ":colors"} (tr "workspace.assets.colors")]
[:option {:value ":typographies"} (tr "workspace.assets.typography")]]]]