fix create profile issues (#15561)

This commit is contained in:
Parvesh Monu 2023-04-03 19:49:25 +05:30 committed by GitHub
parent 79cd7f7df5
commit 6bdadd9f0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 14 deletions

View File

@ -6,6 +6,7 @@
[quo2.components.inputs.title-input.view :as title-input] [quo2.components.inputs.title-input.view :as title-input]
[quo2.foundations.colors :as colors] [quo2.foundations.colors :as colors]
[react-native.core :as rn] [react-native.core :as rn]
[react-native.platform :as platform]
[react-native.hole-view :as hole-view])) [react-native.hole-view :as hole-view]))
(defn profile-input (defn profile-input
@ -18,20 +19,29 @@
[rn/view [rn/view
{:style (style/container customization-color)} {:style (style/container customization-color)}
[rn/view [rn/view
[hole-view/hole-view (if platform/ios?
{:holes [{:x 33 [hole-view/hole-view
:y 23 {:holes [{:x 33
:width 24 :y 23
:height 24 :width 24
:borderRadius 12}]} :height 24
[user-avatar/user-avatar :borderRadius 12}]}
(assoc image-picker-props [user-avatar/user-avatar
:customization-color customization-color (assoc image-picker-props
:full-name (if (seq full-name) :customization-color customization-color
full-name :full-name (if (seq full-name)
placeholder) full-name
:status-indicator? false placeholder)
:size :medium)]] :status-indicator? false
:size :medium)]]
[user-avatar/user-avatar
(assoc image-picker-props
:customization-color customization-color
:full-name (if (seq full-name)
full-name
placeholder)
:status-indicator? false
:size :medium)])
[buttons/button [buttons/button
{:accessibility-label :select-profile-picture-button {:accessibility-label :select-profile-picture-button
:type :grey :type :grey