From 010a3ef3a759c9329db1bb3fd301703767be7414 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 7 Jul 2023 10:41:21 +0200 Subject: [PATCH] :lipstick: Add minor cosmetic chanes to workspace comments ns --- frontend/src/app/main/ui/workspace/comments.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/comments.cljs b/frontend/src/app/main/ui/workspace/comments.cljs index 02ac964b0..dff8689f2 100644 --- a/frontend/src/app/main/ui/workspace/comments.cljs +++ b/frontend/src/app/main/ui/workspace/comments.cljs @@ -29,12 +29,12 @@ [] (let [{cmode :mode cshow :show} (mf/deref refs/comments-local) update-mode - (mf/use-callback + (mf/use-fn (fn [mode] (st/emit! (dcm/update-filters {:mode mode})))) update-show - (mf/use-callback + (mf/use-fn (fn [mode] (st/emit! (dcm/update-filters {:show mode}))))] @@ -76,7 +76,7 @@ page-id (or page-id (mf/use-ctx ctx/current-page-id)) on-thread-click - (mf/use-callback + (mf/use-fn (mf/deps page-id) (fn [thread] (when (not= page-id (:page-id thread))