Remove top nav search button and add bottom padding for home list (#14966)

This commit is contained in:
Parvesh Monu 2023-02-02 19:16:54 +05:30 committed by GitHub
parent c38cb03956
commit c2cfb4539f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View File

@ -40,7 +40,8 @@
:on-end-reached #(re-frame/dispatch [:chat/show-more-chats]) :on-end-reached #(re-frame/dispatch [:chat/show-more-chats])
:keyboard-should-persist-taps :always :keyboard-should-persist-taps :always
:data items :data items
:render-fn chat-list-item/chat-list-item}]))) :render-fn chat-list-item/chat-list-item
:content-container-style {:padding-bottom 30}}])))
(defn welcome-blank-contacts (defn welcome-blank-contacts
[] []
@ -93,7 +94,7 @@
(defn home (defn home
[] []
[:<> [:<>
[common.home/top-nav {:type :default}] [common.home/top-nav {:type :default :hide-search true}]
[common.home/title-column [common.home/title-column
{:label (i18n/label :t/messages) {:label (i18n/label :t/messages)
:handler #(rf/dispatch [:bottom-sheet/show-sheet :new-chat-bottom-sheet {}]) :handler #(rf/dispatch [:bottom-sheet/show-sheet :new-chat-bottom-sheet {}])

View File

@ -48,7 +48,8 @@
:keyboard-should-persist-taps :always :keyboard-should-persist-taps :always
:shows-horizontal-scroll-indicator false :shows-horizontal-scroll-indicator false
:data community-ids :data community-ids
:render-fn render-fn}]) :render-fn render-fn
:content-container-style {:padding-bottom 30}}])
(defn segments-community-lists (defn segments-community-lists
[selected-tab] [selected-tab]

View File

@ -109,9 +109,10 @@
[jump-to-list switcher-cards shell-margin] [jump-to-list switcher-cards shell-margin]
[top-nav-blur-overlay (:top insets)] [top-nav-blur-overlay (:top insets)]
[common.home/top-nav [common.home/top-nav
{:type :shell {:type :shell
:style {:margin-top (:top insets) :hide-search true
:z-index 2}}]])])) :style {:margin-top (:top insets)
:z-index 2}}]])]))
(defn on-layout (defn on-layout
[evt] [evt]