File tree 3 files changed +33
-14
lines changed
src/status_im2/contexts/activity_center
3 files changed +33
-14
lines changed Original file line number Diff line number Diff line change 47
47
:padding-vertical 12 })
48
48
49
49
(def empty-title
50
- {:padding-bottom 2 })
50
+ {:padding-bottom 2
51
+ :color colors/white})
52
+
53
+ (def empty-subtitle
54
+ {:color colors/white})
55
+
56
+ (def empty-rectangle-placeholder
57
+ {:width 120
58
+ :height 120
59
+ :background-color colors/danger-50
60
+ :margin-bottom 20 })
Original file line number Diff line number Diff line change 29
29
30
30
(defn empty-tab
31
31
[]
32
- [rn/view
33
- {:style style/empty-container
34
- :accessibility-label :empty-notifications }
35
- [quo/icon :i/placeholder ]
36
- [quo/text
37
- {:size :paragraph-1
38
- :style style/empty-title
39
- :weight :semi-bold }
40
- (i18n/label :t/empty-notifications-title )]
41
- [quo/text {:size :paragraph-2 }
42
- (i18n/label :t/empty-notifications-subtitle )]])
32
+ (let [filter-status (rf/sub [:activity-center/filter-status ])]
33
+ [rn/view
34
+ {:style style/empty-container
35
+ :accessibility-label :empty-notifications }
36
+ [rn/view {:style style/empty-rectangle-placeholder}]
37
+ [quo/text
38
+ {:size :paragraph-1
39
+ :style style/empty-title
40
+ :weight :semi-bold }
41
+ (i18n/label (if (= :unread filter-status)
42
+ :t/empty-notifications-title-unread
43
+ :t/empty-notifications-title-read ))]
44
+ [quo/text
45
+ {:size :paragraph-2
46
+ :style style/empty-subtitle}
47
+ (i18n/label (if (= :unread filter-status)
48
+ :t/empty-notifications-subtitle-unread
49
+ :t/empty-notifications-subtitle-read ))]]))
43
50
44
51
(defn tabs
45
52
[]
Original file line number Diff line number Diff line change 1909
1909
"bold" : " Bold" ,
1910
1910
"italic" : " Italic" ,
1911
1911
"strikethrough" : " Strikethrough" ,
1912
- "empty-notifications-title" : " No notifications" ,
1913
- "empty-notifications-subtitle" : " Your notifications will be here" ,
1912
+ "empty-notifications-title-unread" : " You're up to date" ,
1913
+ "empty-notifications-subtitle-unread" : " Unread notifications will be here" ,
1914
+ "empty-notifications-title-read" : " No notifications" ,
1915
+ "empty-notifications-subtitle-read" : " Your notifications will be here" ,
1914
1916
"add-text" : " Add text" ,
1915
1917
"send" : " Send" ,
1916
1918
"unmute-group" : " Unmute group" ,
You can’t perform that action at this time.
0 commit comments