Set Activity Center as the new default (#14492)
This commit is contained in:
parent
53ef1ef4b5
commit
ae10908984
|
@ -64,7 +64,8 @@
|
||||||
(map (fn [s]
|
(map (fn [s]
|
||||||
[rn/view {:style {:margin-right 4
|
[rn/view {:style {:margin-right 4
|
||||||
:margin-top 0}}
|
:margin-top 0}}
|
||||||
[text/text {:size :paragraph-2}
|
[text/text {:size :paragraph-2
|
||||||
|
:style {:color colors/white}}
|
||||||
s]])
|
s]])
|
||||||
(string/split detail #"\s+"))
|
(string/split detail #"\s+"))
|
||||||
[[rn/view {:margin-right 4
|
[[rn/view {:margin-right 4
|
||||||
|
|
|
@ -158,7 +158,7 @@
|
||||||
:on-press (fn [id]
|
:on-press (fn [id]
|
||||||
(reset! active-tab-id id)
|
(reset! active-tab-id id)
|
||||||
(when scroll-on-press?
|
(when scroll-on-press?
|
||||||
(.scrollToIndex @flat-list-ref
|
(.scrollToIndex ^js @flat-list-ref
|
||||||
#js {:animated true
|
#js {:animated true
|
||||||
:index index
|
:index index
|
||||||
:viewPosition 0.5}))
|
:viewPosition 0.5}))
|
||||||
|
|
|
@ -82,12 +82,13 @@
|
||||||
[]
|
[]
|
||||||
(let [screen-padding 20]
|
(let [screen-padding 20]
|
||||||
[rn/view
|
[rn/view
|
||||||
[quo2/button {:icon true
|
[quo2/button {:icon true
|
||||||
:type :blur-bg
|
:type :blur-bg
|
||||||
:size 32
|
:size 32
|
||||||
:override-theme :dark
|
:accessibility-label :close-activity-center
|
||||||
:style style/header-button
|
:override-theme :dark
|
||||||
:on-press #(rf/dispatch [:hide-popover])}
|
:style style/header-button
|
||||||
|
:on-press #(rf/dispatch [:hide-popover])}
|
||||||
:i/close]
|
:i/close]
|
||||||
[quo2/text {:size :heading-1
|
[quo2/text {:size :heading-1
|
||||||
:weight :semi-bold
|
:weight :semi-bold
|
||||||
|
|
|
@ -141,4 +141,4 @@
|
||||||
|
|
||||||
;; TODO: Remove this (highly) temporary flag once the new Activity Center is
|
;; TODO: Remove this (highly) temporary flag once the new Activity Center is
|
||||||
;; usable enough to replace the old one **in the new UI**.
|
;; usable enough to replace the old one **in the new UI**.
|
||||||
(def new-activity-center-enabled? false)
|
(def new-activity-center-enabled? true)
|
||||||
|
|
Loading…
Reference in New Issue