Add introduce yourself modal

This commit is contained in:
Ulises M 2024-12-20 17:09:51 -06:00
parent 9de74191f6
commit c200983920
No known key found for this signature in database
GPG Key ID: 5A15782EB758534E
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
(ns status-im.contexts.profile.edit.introduce-yourself.view
(:require [quo.core :as quo]
[react-native.core :as rn]
[utils.re-frame :as rf]))
(defn sheet
[{:keys [pending-event]}]
(let [on-accept (fn []
(rf/dispatch [:open-modal :screen/profile.edit-profile-modal
{:pending-event pending-event}]))
on-reject #(rf/dispatch pending-event)]
[:<>
[rn/view {:style {:padding-horizontal 20}}
[quo/text
{:style {:padding-bottom 4}
:size :heading-2
:weight :semi-bold}
"Introduce yourself"]
[quo/text
{:style {:padding-top 4 :padding-bottom 12}
:size :paragraph-1
:weight :regular}
"Add an optional display name and profile picture so others can easily recognize you"]]
[quo/bottom-actions
{:actions :two-actions
:buttons-style {:flex-shrink 1 :flex-basis 0}
:button-one-label "Edit Profile"
:button-one-props {:type :primary
:on-press on-accept}
:button-two-label "Skip"
:button-two-props {:type :grey
:on-press on-reject}}]]))