From 9fe4919a2b4ab5b18b021a77b9a7ca79920ce7d3 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Thu, 17 Oct 2024 17:04:19 +0200 Subject: [PATCH] Migrate msg -> ntf --- frontend/src/app/main/ui/workspace/tokens/sets.cljs | 4 ++-- frontend/src/app/main/ui/workspace/tokens/sidebar.cljs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/sets.cljs b/frontend/src/app/main/ui/workspace/tokens/sets.cljs index 570faa8c0..6ba57882b 100644 --- a/frontend/src/app/main/ui/workspace/tokens/sets.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/sets.cljs @@ -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}))) diff --git a/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs b/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs index 39fea9768..d36b56199 100644 --- a/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs @@ -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}))))))