Ver código fonte

fix(whiteboard): do not show the default mobile footer for whiteboard

Peng Xiao 3 anos atrás
pai
commit
2eb094ecea
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/main/frontend/mobile/footer.cljs

+ 2 - 1
src/main/frontend/mobile/footer.cljs

@@ -50,7 +50,8 @@
 
 (rum/defc footer < rum/reactive
   []
-  (when (and (not (state/sub :editor/editing?))
+  (when (and (#{:page :home} (state/sub [:route-match :data :name]))
+             (not (state/sub :editor/editing?))
              (state/sub :mobile/show-tabbar?)
              (state/get-current-repo))
     [:div.cp__footer.w-full.bottom-0.justify-between