Skip to content

Commit 8f3693a

Browse files
committed
[Fix] Update theme in Activity Center
Signed-off-by: Mohamed Javid <[email protected]>
1 parent 821cab1 commit 8f3693a

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

src/status_im2/contexts/shell/activity_center/drawer/view.cljs

+12-13
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@
88
[]
99
(let [unread-count (rf/sub [:activity-center/unread-count])]
1010
[quo/action-drawer
11-
[[{:icon :i/mark-as-read
12-
:override-theme :dark
13-
:label (i18n/label :t/mark-all-notifications-as-read)
14-
:disabled? (zero? unread-count)
15-
:on-press (fn []
16-
(rf/dispatch [:activity-center.notifications/mark-all-as-read-locally
17-
(fn []
18-
{:icon :up-to-date
19-
:icon-color colors/success-50
20-
:text (i18n/label :t/notifications-marked-as-read
21-
{:count unread-count})
22-
:override-theme :dark})])
23-
(rf/dispatch [:hide-bottom-sheet]))}]]]))
11+
[[{:icon :i/mark-as-read
12+
:label (i18n/label :t/mark-all-notifications-as-read)
13+
:disabled? (zero? unread-count)
14+
:on-press (fn []
15+
(rf/dispatch [:activity-center.notifications/mark-all-as-read-locally
16+
(fn []
17+
{:icon :up-to-date
18+
:icon-color colors/success-50
19+
:text (i18n/label :t/notifications-marked-as-read
20+
{:count unread-count})
21+
:theme :dark})])
22+
(rf/dispatch [:hide-bottom-sheet]))}]]]))

src/status_im2/contexts/shell/activity_center/header/view.cljs

+2-4
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,16 @@
2828
:type :blur-bg
2929
:size 32
3030
:accessibility-label :close-activity-center
31-
:override-theme :dark
3231
:on-press #(rf/dispatch [:navigate-back])}
3332
:i/close]
3433
[quo/button
3534
{:icon true
3635
:type :blur-bg
3736
:size 32
3837
:accessibility-label :activity-center-open-more
39-
:override-theme :dark
4038
:on-press #(rf/dispatch [:show-bottom-sheet
41-
{:content drawer/options
42-
:override-theme :dark}])}
39+
{:content drawer/options
40+
:theme :dark}])}
4341
:i/options]]
4442
[quo/text
4543
{:size :heading-1

0 commit comments

Comments
 (0)