From c91b4339dcc73ae0ba45380f91055b846f787d99 Mon Sep 17 00:00:00 2001 From: Ajay Sivan Date: Fri, 5 Jan 2024 15:39:58 +0530 Subject: [PATCH] Use text-combinations/page-top component in request to join sheet. (#18384) --- .../actions/accounts_selection/view.cljs | 24 ++++++------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/src/status_im/contexts/communities/actions/accounts_selection/view.cljs b/src/status_im/contexts/communities/actions/accounts_selection/view.cljs index a393b71fff..8b3ac9010a 100644 --- a/src/status_im/contexts/communities/actions/accounts_selection/view.cljs +++ b/src/status_im/contexts/communities/actions/accounts_selection/view.cljs @@ -18,20 +18,6 @@ {:community-id id :password %}])}]) (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 [] (let [{id :community-id} (rf/sub [:get-screen-params]) @@ -43,9 +29,13 @@ :icon-name :i/close :on-press #(rf/dispatch [:navigate-back]) :accessibility-label :back-button}] - [page-top - {:community-name name - :logo-uri (get-in images [:thumbnail :uri])}] + [quo/page-top + {:title (i18n/label :t/request-to-join) + :description :context-tag + :context-tag {:type :community + :size 24 + :community-logo (get-in images [:thumbnail :uri]) + :community-name name}}] [gesture/scroll-view [:<> [quo/text