From df87828d80696207b8d99573c3a5c19631b3ef2f Mon Sep 17 00:00:00 2001 From: ibrkhalil Date: Fri, 30 Dec 2022 21:08:16 +0200 Subject: [PATCH] Fix photo selector --- src/status_im2/contexts/chat/photo_selector/style.cljs | 7 +++---- src/status_im2/contexts/chat/photo_selector/view.cljs | 8 +++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/status_im2/contexts/chat/photo_selector/style.cljs b/src/status_im2/contexts/chat/photo_selector/style.cljs index 61639d7084..c2c8d87ec8 100644 --- a/src/status_im2/contexts/chat/photo_selector/style.cljs +++ b/src/status_im2/contexts/chat/photo_selector/style.cljs @@ -1,13 +1,12 @@ -(ns status-im2.contexts.chat.photo-selector.style - (:require [quo2.foundations.colors :as colors] - [react-native.platform :as platform])) +(ns status-im.ui2.screens.chat.photo-selector.style + (:require [quo2.foundations.colors :as colors])) (defn gradient-container [safe-area] {:width "100%" :height (+ (:bottom safe-area) 65) :position :absolute - :bottom (if platform/ios? 0 65)}) + :bottom 0}) (defn buttons-container [safe-area] diff --git a/src/status_im2/contexts/chat/photo_selector/view.cljs b/src/status_im2/contexts/chat/photo_selector/view.cljs index 068ce55386..60d62c7d05 100644 --- a/src/status_im2/contexts/chat/photo_selector/view.cljs +++ b/src/status_im2/contexts/chat/photo_selector/view.cljs @@ -9,8 +9,8 @@ [reagent.core :as reagent] [status-im2.contexts.chat.photo-selector.style :as style] [status-im.utils.core :as utils] - [quo.react] - [utils.re-frame :as rf])) + [utils.re-frame :as rf] + [status-im2.common.bottom-sheet.view :as bottom-sheet])) (def selected (reagent/atom [])) @@ -36,7 +36,9 @@ [quo/button {:style {:align-self :stretch :margin-horizontal 20} - :on-press #(on-press-confirm-selection chat-id) + :on-press (fn [] + (bottom-sheet/close-bottom-sheet-fn nil) + (on-press-confirm-selection chat-id)) :accessibility-label :confirm-selection} (i18n/label :t/confirm-selection)]])))])