mirror of
https://github.com/penpot/penpot.git
synced 2025-06-25 05:36:59 +02:00
♻️ Put token settings under config flag (#6551)
This commit is contained in:
parent
e5bc369e56
commit
3dfccdaf9b
1 changed files with 10 additions and 7 deletions
|
@ -10,6 +10,7 @@
|
|||
[app.common.data :as d]
|
||||
[app.common.json :as json]
|
||||
[app.common.types.tokens-lib :as ctob]
|
||||
[app.config :as cf]
|
||||
[app.main.data.event :as ev]
|
||||
[app.main.data.modal :as modal]
|
||||
[app.main.data.style-dictionary :as sd]
|
||||
|
@ -414,13 +415,15 @@
|
|||
:on-click on-export}
|
||||
(tr "labels.export")]]
|
||||
|
||||
[:> tooltip* {:tooltip-content "Tokens settings"
|
||||
:id "button-setting"}
|
||||
[:> icon-button* {:variant "secondary"
|
||||
:icon "settings"
|
||||
:tooltip-id "button-setting"
|
||||
:aria-label "Settings"
|
||||
:on-click open-settings-modal}]]]))
|
||||
|
||||
(when (contains? cf/flags :token-units)
|
||||
[:> tooltip* {:tooltip-content "Tokens settings"
|
||||
:id "button-setting"}
|
||||
[:> icon-button* {:variant "secondary"
|
||||
:icon "settings"
|
||||
:tooltip-id "button-setting"
|
||||
:aria-label "Settings"
|
||||
:on-click open-settings-modal}]])]))
|
||||
|
||||
(mf/defc tokens-sidebar-tab*
|
||||
{::mf/wrap [mf/memo]}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue