mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 11:26:26 +00:00
Enable two disabled linters and bump kondo dep
All the fixes were on used-underscored-binding
This commit is contained in:
committed by
Tienson Qin
parent
dda2c9c92a
commit
51c318e2da
@@ -86,14 +86,14 @@
|
||||
(textarea props)))
|
||||
|
||||
(rum/defc dropdown-content-wrapper
|
||||
< {:did-mount (fn [_state]
|
||||
< {:did-mount (fn [state]
|
||||
(let [k (inc (count (state/sub :modal/dropdowns)))
|
||||
args (:rum/args _state)]
|
||||
args (:rum/args state)]
|
||||
(state/set-state! [:modal/dropdowns k] (second args))
|
||||
(assoc _state ::k k)))
|
||||
:will-unmount (fn [_state]
|
||||
(state/update-state! :modal/dropdowns #(dissoc % (::k _state)))
|
||||
_state)}
|
||||
(assoc state ::k k)))
|
||||
:will-unmount (fn [state]
|
||||
(state/update-state! :modal/dropdowns #(dissoc % (::k state)))
|
||||
state)}
|
||||
[dropdown-state _close-fn content class]
|
||||
(let [class (or class
|
||||
(util/hiccup->class "origin-top-right.absolute.right-0.mt-2"))]
|
||||
@@ -288,8 +288,8 @@
|
||||
(let [time-fn (fn []
|
||||
(try
|
||||
(util/time-ago input)
|
||||
(catch js/Error _e
|
||||
(js/console.error _e)
|
||||
(catch js/Error e
|
||||
(js/console.error e)
|
||||
input)))
|
||||
[time set-time] (rum/use-state (time-fn))]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user