mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
Merge pull request #66 from tokens-studio/close-token-modal
add ability to close modal once save token button is clicked
This commit is contained in:
commit
6fa1d6eecc
1 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
(:require-macros [app.main.style :as stl])
|
||||
(:require
|
||||
[app.common.data :as d]
|
||||
[app.main.data.modal :as modal]
|
||||
[app.main.data.tokens :as dt]
|
||||
[app.main.refs :as refs]
|
||||
[app.main.store :as st]
|
||||
|
@ -68,7 +69,8 @@
|
|||
:type token-type
|
||||
:value token-value}
|
||||
@description (assoc :description @description))]
|
||||
(st/emit! (dt/add-token token))))]
|
||||
(st/emit! (dt/add-token token))
|
||||
(modal/hide!)))]
|
||||
|
||||
(mf/use-effect
|
||||
(fn []
|
||||
|
|
Loading…
Reference in a new issue