0
Fork 0
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:
Akshay Gupta 2024-05-08 17:52:33 +05:30 committed by GitHub
commit 6fa1d6eecc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 []