♻️ Remove obsolete st/emitf macro

This commit is contained in:
Andrés Moya 2022-05-20 16:33:42 +02:00
parent eb07350cac
commit 2be432e1d4
40 changed files with 211 additions and 230 deletions

View file

@ -56,7 +56,7 @@
(with-meta project {:on-success on-duplicate-success}))))
toggle-pin
(st/emitf (dd/toggle-project-pin project))
#(st/emit! (dd/toggle-project-pin project))
on-move-success
(fn [team-id]
@ -66,7 +66,7 @@
(fn [team-id]
(let [data {:id (:id project) :team-id team-id}
mdata {:on-success #(on-move-success team-id)}]
(st/emitf (dm/success (tr "dashboard.success-move-project"))
#(st/emit! (dm/success (tr "dashboard.success-move-project"))
(dd/move-project (with-meta data mdata)))))
delete-fn
@ -76,7 +76,7 @@
(dd/go-to-projects (:team-id project))))
on-delete
(st/emitf
#(st/emit!
(modal/show
{:type :confirm
:title (tr "modals.delete-project-confirm.title")