From ae1090898440cbe98a96d47239e226bd741c3034 Mon Sep 17 00:00:00 2001 From: Icaro Motta Date: Fri, 9 Dec 2022 09:52:18 -0300 Subject: [PATCH] Set Activity Center as the new default (#14492) --- .../components/notifications/activity_log/view.cljs | 3 ++- src/quo2/components/tabs/tabs.cljs | 2 +- src/status_im/ui/screens/activity_center/views.cljs | 13 +++++++------ src/status_im2/setup/config.cljs | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/quo2/components/notifications/activity_log/view.cljs b/src/quo2/components/notifications/activity_log/view.cljs index 572d9a66a1..02fcd151c1 100644 --- a/src/quo2/components/notifications/activity_log/view.cljs +++ b/src/quo2/components/notifications/activity_log/view.cljs @@ -64,7 +64,8 @@ (map (fn [s] [rn/view {:style {:margin-right 4 :margin-top 0}} - [text/text {:size :paragraph-2} + [text/text {:size :paragraph-2 + :style {:color colors/white}} s]]) (string/split detail #"\s+")) [[rn/view {:margin-right 4 diff --git a/src/quo2/components/tabs/tabs.cljs b/src/quo2/components/tabs/tabs.cljs index 4ab88c918a..824561e9e6 100644 --- a/src/quo2/components/tabs/tabs.cljs +++ b/src/quo2/components/tabs/tabs.cljs @@ -158,7 +158,7 @@ :on-press (fn [id] (reset! active-tab-id id) (when scroll-on-press? - (.scrollToIndex @flat-list-ref + (.scrollToIndex ^js @flat-list-ref #js {:animated true :index index :viewPosition 0.5})) diff --git a/src/status_im/ui/screens/activity_center/views.cljs b/src/status_im/ui/screens/activity_center/views.cljs index 014dbb81ee..f0cf735094 100644 --- a/src/status_im/ui/screens/activity_center/views.cljs +++ b/src/status_im/ui/screens/activity_center/views.cljs @@ -82,12 +82,13 @@ [] (let [screen-padding 20] [rn/view - [quo2/button {:icon true - :type :blur-bg - :size 32 - :override-theme :dark - :style style/header-button - :on-press #(rf/dispatch [:hide-popover])} + [quo2/button {:icon true + :type :blur-bg + :size 32 + :accessibility-label :close-activity-center + :override-theme :dark + :style style/header-button + :on-press #(rf/dispatch [:hide-popover])} :i/close] [quo2/text {:size :heading-1 :weight :semi-bold diff --git a/src/status_im2/setup/config.cljs b/src/status_im2/setup/config.cljs index cd419608c1..3f639db558 100644 --- a/src/status_im2/setup/config.cljs +++ b/src/status_im2/setup/config.cljs @@ -141,4 +141,4 @@ ;; TODO: Remove this (highly) temporary flag once the new Activity Center is ;; usable enough to replace the old one **in the new UI**. -(def new-activity-center-enabled? false) +(def new-activity-center-enabled? true)