[#12318] Bottom sheet doesn't close when opening gallery and camera to set profile picture on iOS
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
88715131dd
commit
e966f8a54b
|
@ -13,11 +13,13 @@
|
||||||
:height crop-size})
|
:height crop-size})
|
||||||
|
|
||||||
(defn pick-pic []
|
(defn pick-pic []
|
||||||
|
(re-frame/dispatch [:bottom-sheet/hide])
|
||||||
(react/show-image-picker
|
(react/show-image-picker
|
||||||
#(re-frame/dispatch [::multiaccounts/save-profile-picture (.-path ^js %) 0 0 crop-size crop-size])
|
#(re-frame/dispatch [::multiaccounts/save-profile-picture (.-path ^js %) 0 0 crop-size crop-size])
|
||||||
crop-opts))
|
crop-opts))
|
||||||
|
|
||||||
(defn take-pic []
|
(defn take-pic []
|
||||||
|
(re-frame/dispatch [:bottom-sheet/hide])
|
||||||
(react/show-image-picker-camera
|
(react/show-image-picker-camera
|
||||||
#(re-frame/dispatch [::multiaccounts/save-profile-picture (.-path ^js %) 0 0 crop-size crop-size])
|
#(re-frame/dispatch [::multiaccounts/save-profile-picture (.-path ^js %) 0 0 crop-size crop-size])
|
||||||
crop-opts))
|
crop-opts))
|
||||||
|
|
Loading…
Reference in New Issue