diff --git a/src/status_im/popover/core.cljs b/src/status_im/popover/core.cljs index 7e0cd94c56..b3fb0c6280 100644 --- a/src/status_im/popover/core.cljs +++ b/src/status_im/popover/core.cljs @@ -4,10 +4,14 @@ (rf/defn show-popover {:events [:show-popover]} [_ value] - {:show-popover nil - ;;TODO refactor popover just start animation on mount - :dispatch-later [{:ms 250 :dispatch [:show-popover-db value]}] - :dismiss-keyboard nil}) + (let [delay-ms (or (:delay-ms value) 250) + value (dissoc value :delay-ms)] + {:show-popover nil + ;; We should probably refactor to start the animation on mount, so that the + ;; delay can be removed. See comment for more details: + ;; https://github.com/status-im/status-mobile/pull/15222#issuecomment-1450162137 + :dispatch-later [{:ms delay-ms :dispatch [:show-popover-db value]}] + :dismiss-keyboard nil})) (rf/defn show-popover-db {:events [:show-popover-db]} diff --git a/src/status_im2/contexts/activity_center/events.cljs b/src/status_im2/contexts/activity_center/events.cljs index 8ddc821535..6b6a273c55 100644 --- a/src/status_im2/contexts/activity_center/events.cljs +++ b/src/status_im2/contexts/activity_center/events.cljs @@ -33,6 +33,7 @@ :dispatch [:show-popover {:view :activity-center :style {:margin 0} + :delay-ms 50 :disable-touchable-overlay? true :blur-view? true :blur-view-props {:blur-amount 20