mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
Migrate msg -> ntf
This commit is contained in:
parent
6af6dd1288
commit
9fe4919a2b
2 changed files with 4 additions and 4 deletions
|
@ -7,10 +7,10 @@
|
|||
(ns app.main.ui.workspace.tokens.sets
|
||||
(:require-macros [app.main.style :as stl])
|
||||
(:require
|
||||
[app.main.data.messages :as msg]
|
||||
[app.main.data.tokens :as wdt]
|
||||
[app.main.refs :as refs]
|
||||
[app.main.store :as st]
|
||||
[app.main.data.notifications :as ntf]
|
||||
[app.main.ui.hooks :as h]
|
||||
[app.main.ui.icons :as i]
|
||||
[app.main.ui.workspace.tokens.sets-context :as sets-context]
|
||||
|
@ -166,7 +166,7 @@
|
|||
:selected-set-id selected-token-set-id)])]))])]]))
|
||||
|
||||
(defn warn-on-try-create-token-set-group! []
|
||||
(st/emit! (msg/show {:content "Token Set grouping is not supported yet."
|
||||
(st/emit! (ntf/show {:content "Token Set grouping is not supported yet."
|
||||
:notification-type :toast
|
||||
:type :warning
|
||||
:timeout 3000})))
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
[app.common.data :as d]
|
||||
[app.common.transit :as t]
|
||||
[app.common.types.tokens-lib :as ctob]
|
||||
[app.main.data.messages :as msg]
|
||||
[app.main.data.notifications :as ntf]
|
||||
[app.main.data.modal :as modal]
|
||||
[app.main.data.tokens :as dt]
|
||||
[app.main.refs :as refs]
|
||||
|
@ -294,7 +294,7 @@
|
|||
(st/emit! (dt/import-tokens-lib lib)))
|
||||
(fn [err]
|
||||
(let [{:keys [user-error]} (ex-data err)]
|
||||
(st/emit! (msg/show {:content user-error
|
||||
(st/emit! (ntf/show {:content user-error
|
||||
:notification-type :toast
|
||||
:type :warning
|
||||
:timeout 3000}))))))
|
||||
|
|
Loading…
Reference in a new issue