Skip to content

Commit

Permalink
Use text-combinations/page-top component in request to join sheet. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayesivan authored Jan 5, 2024
1 parent 5a83287 commit c91b433
Showing 1 changed file with 7 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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
Expand Down

0 comments on commit c91b433

Please sign in to comment.