fix: frontend lints

experiment/tanstack-table
Gabriel Horner 2024-05-30 11:27:25 -04:00
parent 790d0460a1
commit 8cfaddc25a
3 changed files with 9 additions and 18 deletions

View File

@ -2362,8 +2362,6 @@
"Large block will not be editable or searchable to not slow down the app, please use another editor to edit this block."])
[:div.flex.flex-row.justify-between.block-content-inner
(when-not plugin-slotted?
(let [db-based? (config/db-based-graph? (state/get-current-repo))]
[:div.block-head-wrap
(cond
(:block/name block)
@ -2372,7 +2370,7 @@
(page-cp config block)]
:else
(build-block-title config block))]))
(build-block-title config block))])
(file-block/clock-summary-cp block body)]

View File

@ -5,8 +5,7 @@
[frontend.handler.notification :as notification]
[frontend.state :as state]
[promesa.core :as p]
[logseq.db :as ldb]
[frontend.db.react :as react]))
[logseq.db :as ldb]))
(defmulti handle identity)

View File

@ -2347,12 +2347,6 @@ Similar to re-frame subscriptions"
(r/cached-derived-atom (:db/async-query-loading @state) [(get-current-repo) ::async-query (str k)]
(fn [s] (contains? s (str k))))))
(defn get-async-query-loading
[k]
(assert (some? k))
(let [s @(:db/async-query-loading @state)]
(contains? s (str k))))
(defn set-color-accent! [color]
(swap! state assoc :ui/radix-color color)
(storage/set :ui/radix-color color)