mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 22:11:37 +02:00
🔧 Add token themes in tokens-lib custom type
This commit is contained in:
parent
1d7536687a
commit
316d333c96
7 changed files with 565 additions and 239 deletions
|
@ -115,10 +115,9 @@
|
|||
(ptk/reify ::update-token-theme
|
||||
ptk/WatchEvent
|
||||
(watch [it state _]
|
||||
(let [prev-token-theme (wtts/get-workspace-token-theme state (:id token-theme))
|
||||
(let [prev-token-theme (wtts/get-workspace-token-theme (:id token-theme) state)
|
||||
changes (-> (pcb/empty-changes it)
|
||||
(pcb/update-token-theme token-theme prev-token-theme))]
|
||||
(js/console.log "changes" changes)
|
||||
(rx/of
|
||||
(dch/commit-changes changes))))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue