fix: merge issues

This commit is contained in:
Peng Xiao
2022-09-24 10:16:19 +08:00
parent fd94862312
commit 526a8d99c8
6 changed files with 66 additions and 52 deletions

View File

@@ -5,6 +5,7 @@
["react-textarea-autosize" :as TextareaAutosize]
["react-tippy" :as react-tippy]
["react-transition-group" :refer [CSSTransition TransitionGroup]]
[camel-snake-kebab.core :as csk]
[cljs-bean.core :as bean]
[clojure.string :as string]
[datascript.core :as d]
@@ -30,18 +31,8 @@
[goog.object :as gobj]
[lambdaisland.glogi :as log]
[medley.core :as medley]
[electron.ipc :as ipc]
["react-resize-context" :as Resize]
["react-textarea-autosize" :as TextareaAutosize]
["react-tippy" :as react-tippy]
["react-transition-group" :refer [CSSTransition TransitionGroup]]
["@logseq/react-tweet-embed" :as react-tweet-embed]
["react-intersection-observer" :as react-intersection-observer]
[rum.core :as rum]
[camel-snake-kebab.core :as csk]
[frontend.db-mixins :as db-mixins]
[frontend.mobile.util :as mobile-util]
[goog.functions :refer [debounce]]))
[promesa.core :as p]
[rum.core :as rum]))
(defonce transition-group (r/adapt-class TransitionGroup))
(defonce css-transition (r/adapt-class CSSTransition))
@@ -970,6 +961,12 @@
{:class (str "ls-icon-" class)}
(f (merge {:size 18} (r/map-keys->camel-case opts)))])))))))
(rum/defc type-icon
[{:keys [name class title extension?]}]
[:.type-icon {:class class
:title title}
(icon name {:extension? extension?})])
(rum/defc with-shortcut < rum/reactive
< {:key-fn (fn [key pos] (str "shortcut-" key pos))}
[shortcut-key position content]