Browse Source

fix more lints

Gabriel Horner 1 year ago
parent
commit
62ff0d9d8b

+ 2 - 1
.carve/config.edn

@@ -5,5 +5,6 @@
                   ;; Ignore b/c too many false positives
                   frontend.db
                   ;; Used for debugging
-                  frontend.db.debug]
+                  frontend.db.debug
+                  frontend.worker.debug]
  :report {:format :ignore}}

+ 0 - 11
src/main/frontend/components/container.cljs

@@ -16,7 +16,6 @@
             [frontend.components.icon :as icon]
             [frontend.components.handbooks :as handbooks]
             [dommy.core :as d]
-            [frontend.components.page-menu :as page-menu]
             [frontend.components.content :as cp-content]
             [frontend.config :as config]
             [frontend.context.i18n :refer [t]]
@@ -733,16 +732,6 @@
                :left (str (first position) "px")
                :top (str (second position) "px")}} links]]))
 
-(rum/defc page-title-custom-context-menu-content
-  [page]
-  (when-not (string/blank? page)
-    (let [page-menu-options (page-menu/page-menu page)]
-      [:.menu-links-wrapper
-       (for [{:keys [title options]} page-menu-options]
-         (rum/with-key
-           (ui/menu-link options title)
-           title))])))
-
 (rum/defc custom-context-menu < rum/reactive
   []
   (let [show? (state/sub :custom-context-menu/show?)

+ 1 - 1
src/main/frontend/components/settings.cljs

@@ -1158,7 +1158,7 @@
                            (rtc-handler/<rtc-invite-email graph-uuid user-email)))))}
         "Invite")]]]))
 
-(rum/defcs settings
+(rum/defcs ^:large-vars/cleanup-todo settings
   < (rum/local DEFAULT-ACTIVE-TAB-STATE ::active)
   {:will-mount
    (fn [state]