Skip to content

Commit 55caf02

Browse files
authored
Update empty state (#14916)
Fixes #14899 Updates the empty states according to latest design in Figma.
1 parent 6002672 commit 55caf02

File tree

3 files changed

+33
-14
lines changed

3 files changed

+33
-14
lines changed

src/status_im2/contexts/activity_center/style.cljs

+11-1
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,14 @@
4747
:padding-vertical 12})
4848

4949
(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})

src/status_im2/contexts/activity_center/view.cljs

+18-11
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,24 @@
2929

3030
(defn empty-tab
3131
[]
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))]]))
4350

4451
(defn tabs
4552
[]

translations/en.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1909,8 +1909,10 @@
19091909
"bold": "Bold",
19101910
"italic": "Italic",
19111911
"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",
19141916
"add-text": "Add text",
19151917
"send": "Send",
19161918
"unmute-group": "Unmute group",

0 commit comments

Comments
 (0)