Use text-combinations/page-top component in request to join sheet. (#18384)

This commit is contained in:
Ajay Sivan 2024-01-05 15:39:58 +05:30 committed by GitHub
parent 5a832871fe
commit c91b4339dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 17 deletions

View File

@ -18,20 +18,6 @@
{:community-id id :password %}])}]) {:community-id id :password %}])}])
(rf/dispatch [:navigate-back])) (rf/dispatch [:navigate-back]))
(defn- page-top
[{:keys [community-name logo-uri]}]
[rn/view {:style style/page-top}
[quo/text
{:size :heading-1
:weight :semi-bold}
(i18n/label :t/request-to-join)]
[quo/context-tag
{:type :community
:size 24
:community-logo logo-uri
:community-name community-name
:container-style {:margin-top 8}}]])
(defn view (defn view
[] []
(let [{id :community-id} (rf/sub [:get-screen-params]) (let [{id :community-id} (rf/sub [:get-screen-params])
@ -43,9 +29,13 @@
:icon-name :i/close :icon-name :i/close
:on-press #(rf/dispatch [:navigate-back]) :on-press #(rf/dispatch [:navigate-back])
:accessibility-label :back-button}] :accessibility-label :back-button}]
[page-top [quo/page-top
{:community-name name {:title (i18n/label :t/request-to-join)
:logo-uri (get-in images [:thumbnail :uri])}] :description :context-tag
:context-tag {:type :community
:size 24
:community-logo (get-in images [:thumbnail :uri])
:community-name name}}]
[gesture/scroll-view [gesture/scroll-view
[:<> [:<>
[quo/text [quo/text