mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01: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:
@@ -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 []
|
||||||
|
|||||||
Reference in New Issue
Block a user