mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 06:58:58 -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-macros [app.main.style :as stl])
|
||||||
(:require
|
(:require
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
|
[app.main.data.modal :as modal]
|
||||||
[app.main.data.tokens :as dt]
|
[app.main.data.tokens :as dt]
|
||||||
[app.main.refs :as refs]
|
[app.main.refs :as refs]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
|
@ -68,7 +69,8 @@
|
||||||
:type token-type
|
:type token-type
|
||||||
:value token-value}
|
:value token-value}
|
||||||
@description (assoc :description @description))]
|
@description (assoc :description @description))]
|
||||||
(st/emit! (dt/add-token token))))]
|
(st/emit! (dt/add-token token))
|
||||||
|
(modal/hide!)))]
|
||||||
|
|
||||||
(mf/use-effect
|
(mf/use-effect
|
||||||
(fn []
|
(fn []
|
||||||
|
|
Loading…
Add table
Reference in a new issue