mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
Migrate msg -> ntf
This commit is contained in:
@@ -7,10 +7,10 @@
|
|||||||
(ns app.main.ui.workspace.tokens.sets
|
(ns app.main.ui.workspace.tokens.sets
|
||||||
(:require-macros [app.main.style :as stl])
|
(:require-macros [app.main.style :as stl])
|
||||||
(:require
|
(:require
|
||||||
[app.main.data.messages :as msg]
|
|
||||||
[app.main.data.tokens :as wdt]
|
[app.main.data.tokens :as wdt]
|
||||||
[app.main.refs :as refs]
|
[app.main.refs :as refs]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
|
[app.main.data.notifications :as ntf]
|
||||||
[app.main.ui.hooks :as h]
|
[app.main.ui.hooks :as h]
|
||||||
[app.main.ui.icons :as i]
|
[app.main.ui.icons :as i]
|
||||||
[app.main.ui.workspace.tokens.sets-context :as sets-context]
|
[app.main.ui.workspace.tokens.sets-context :as sets-context]
|
||||||
@@ -166,7 +166,7 @@
|
|||||||
:selected-set-id selected-token-set-id)])]))])]]))
|
:selected-set-id selected-token-set-id)])]))])]]))
|
||||||
|
|
||||||
(defn warn-on-try-create-token-set-group! []
|
(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
|
:notification-type :toast
|
||||||
:type :warning
|
:type :warning
|
||||||
:timeout 3000})))
|
:timeout 3000})))
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
[app.common.transit :as t]
|
[app.common.transit :as t]
|
||||||
[app.common.types.tokens-lib :as ctob]
|
[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.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]
|
||||||
@@ -294,7 +294,7 @@
|
|||||||
(st/emit! (dt/import-tokens-lib lib)))
|
(st/emit! (dt/import-tokens-lib lib)))
|
||||||
(fn [err]
|
(fn [err]
|
||||||
(let [{:keys [user-error]} (ex-data 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
|
:notification-type :toast
|
||||||
:type :warning
|
:type :warning
|
||||||
:timeout 3000}))))))
|
:timeout 3000}))))))
|
||||||
|
|||||||
Reference in New Issue
Block a user