mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 22:22:43 -05:00
Allow giving name of tokens in other sets
This commit is contained in:
parent
012e79603f
commit
20e2c4edb1
1 changed files with 2 additions and 1 deletions
|
@ -145,6 +145,7 @@ Token names should only contain letters and digits separated by . characters.")}
|
||||||
{::mf/wrap-props false}
|
{::mf/wrap-props false}
|
||||||
[{:keys [token token-type] :as _args}]
|
[{:keys [token token-type] :as _args}]
|
||||||
(let [tokens (mf/deref refs/workspace-ordered-token-sets-tokens)
|
(let [tokens (mf/deref refs/workspace-ordered-token-sets-tokens)
|
||||||
|
selected-set-tokens (mf/deref refs/workspace-selected-token-set-tokens)
|
||||||
active-theme-tokens (mf/deref refs/workspace-active-theme-sets-tokens)
|
active-theme-tokens (mf/deref refs/workspace-active-theme-sets-tokens)
|
||||||
resolved-tokens (sd/use-resolved-tokens active-theme-tokens {:names-map? true
|
resolved-tokens (sd/use-resolved-tokens active-theme-tokens {:names-map? true
|
||||||
:cache-atom form-token-cache-atom})
|
:cache-atom form-token-cache-atom})
|
||||||
|
@ -154,7 +155,7 @@ Token names should only contain letters and digits separated by . characters.")}
|
||||||
selected-set-tokens-tree (mf/use-memo
|
selected-set-tokens-tree (mf/use-memo
|
||||||
(mf/deps token-path tokens)
|
(mf/deps token-path tokens)
|
||||||
(fn []
|
(fn []
|
||||||
(-> (wtt/token-names-tree tokens)
|
(-> (wtt/token-names-tree selected-set-tokens)
|
||||||
;; Allow setting editing token to it's own path
|
;; Allow setting editing token to it's own path
|
||||||
(d/dissoc-in token-path))))
|
(d/dissoc-in token-path))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue