🔧 Add token themes in tokens-lib custom type

This commit is contained in:
Andrés Moya 2024-09-04 02:00:31 +02:00
parent 1d7536687a
commit 316d333c96
7 changed files with 565 additions and 239 deletions

View file

@ -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))))))