refactor: unify :editor/show-xxx and (block) commands to :editor/action

This commit is contained in:
Tienson Qin
2022-07-06 20:01:14 +08:00
parent 92f2a2bba1
commit 6d0be829a1
7 changed files with 279 additions and 284 deletions

View File

@@ -147,7 +147,7 @@
(contains? #{"deadline" "scheduled"}
(string/lower-case current-command)))
date (state/sub :date-picker/date)]
(when (state/sub :editor/show-date-picker?)
(when (= :datepicker (state/sub :editor/action))
[:div#date-time-picker.flex.flex-row {:on-click (fn [e] (util/stop e))
:on-mouse-down (fn [e] (.stopPropagation e))}
(ui/datepicker