diff --git a/src/main/frontend/components/editor.cljs b/src/main/frontend/components/editor.cljs index 1b1d6fd10f..23138955aa 100644 --- a/src/main/frontend/components/editor.cljs +++ b/src/main/frontend/components/editor.cljs @@ -7,9 +7,6 @@ [frontend.components.datetime :as datetime-comp] [frontend.components.search :as search] [frontend.components.svg :as svg] - [frontend.mobile.camera :as mobile-camera] - [frontend.mobile.util :as mobile-util] - [frontend.config :as config] [frontend.db :as db] [frontend.db.model :as db-model] [frontend.extensions.zotero :as zotero] @@ -26,9 +23,7 @@ [goog.dom :as gdom] [promesa.core :as p] [rum.core :as rum] - [frontend.handler.history :as history] - [frontend.mobile.footer :as footer] - [frontend.handler.config :as config-handler])) + [frontend.mobile.footer :as footer])) (rum/defc commands < rum/reactive [id format] diff --git a/src/main/frontend/mobile/footer.cljs b/src/main/frontend/mobile/footer.cljs index 677bbb898c..9815a2e4ba 100644 --- a/src/main/frontend/mobile/footer.cljs +++ b/src/main/frontend/mobile/footer.cljs @@ -46,7 +46,8 @@ (rum/defc footer < rum/reactive [] - (when (state/sub :mobile/show-tabbar?) + (when (and (state/sub :mobile/show-tabbar?) + (state/get-current-repo)) [:div.cp__footer.w-full.bottom-0.justify-between (audio-record-cp) (mobile-bar-command #(state/toggle-document-mode!) "notes") diff --git a/src/main/frontend/util.cljc b/src/main/frontend/util.cljc index 3d26f00257..be1489e2ea 100644 --- a/src/main/frontend/util.cljc +++ b/src/main/frontend/util.cljc @@ -13,7 +13,7 @@ [cljs-time.coerce :as tc] [cljs-time.core :as t] [dommy.core :as d] - [frontend.mobile.util :refer [native-platform? native-ios?]] + [frontend.mobile.util :refer [native-platform?]] [goog.dom :as gdom] [goog.object :as gobj] [goog.string :as gstring]