[#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:
andrey 2021-07-23 10:19:23 +02:00
parent 88715131dd
commit e966f8a54b
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 2 additions and 0 deletions

View File

@ -13,11 +13,13 @@
:height crop-size})
(defn pick-pic []
(re-frame/dispatch [:bottom-sheet/hide])
(react/show-image-picker
#(re-frame/dispatch [::multiaccounts/save-profile-picture (.-path ^js %) 0 0 crop-size crop-size])
crop-opts))
(defn take-pic []
(re-frame/dispatch [:bottom-sheet/hide])
(react/show-image-picker-camera
#(re-frame/dispatch [::multiaccounts/save-profile-picture (.-path ^js %) 0 0 crop-size crop-size])
crop-opts))