💄 Update some namespace abbreviations

This commit is contained in:
Eva Marco 2024-02-23 16:39:57 +01:00 committed by Andrey Antukh
parent 1af2ec0b79
commit 336cc98029
27 changed files with 131 additions and 117 deletions

View file

@ -10,7 +10,7 @@
[app.common.data :as d]
[app.common.data.macros :as dma]
[app.common.spec :as us]
[app.main.data.messages :as dm]
[app.main.data.messages :as msg]
[app.main.data.modal :as modal]
[app.main.data.users :as du]
[app.main.refs :as refs]
@ -47,11 +47,11 @@
(assoc-in data [:errors :email-1] error))))
:profile-is-muted
(rx/of (dm/error (tr "errors.profile-is-muted")))
(rx/of (msg/error (tr "errors.profile-is-muted")))
:email-has-permanent-bounces
(let [email (get @form [:data :email-1])]
(rx/of (dm/error (tr "errors.email-has-permanent-bounces" email))))
(rx/of (msg/error (tr "errors.email-has-permanent-bounces" email))))
(rx/throw error)))
@ -61,7 +61,7 @@
(st/emit! (du/fetch-profile)
(modal/hide))
(let [message (tr "notifications.validation-email-sent" (:email profile))]
(st/emit! (dm/info message)
(st/emit! (msg/info message)
(modal/hide)))))
(defn- on-submit