浏览代码

fix: a dev warning

Peng Xiao 3 年之前
父节点
当前提交
cd5a8bca6d
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/main/frontend/components/repo.cljs
  2. 1 1
      src/main/frontend/components/sidebar.cljs

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

@@ -235,7 +235,7 @@
                                  [:span#repo-switch.block.pr-2.whitespace-nowrap
                                   [:span [:span#repo-name.font-medium
                                           (if (= config/local-repo short-repo-name) "Demo" short-repo-name)
-                                          (when remote? [:span.pl-1 (ui/icon "cloud" {:font? true})])]]
+                                          (when remote? [:span.pl-1 (ui/icon "cloud")])]]
                                   [:span.dropdown-caret.ml-2 {:style {:border-top-color "#6b7280"}}]]]]))
             links-header (cond->
                            {:modal-class (util/hiccup->class

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

@@ -234,7 +234,7 @@
      [:button#create-button
       {:on-click toggle-fn}
       [:<>
-       (ui/icon "plus" {:font? true})
+       (ui/icon "plus" {:font? "true"})
        [:span.mx-1 (t :left-side-bar/create)]]])
    (->>
     [{:title (t :left-side-bar/new-page)