Skip to content

Commit d4a58ac

Browse files
authored
chore: add beta tags to communities and chat home screen titles (#21018)
* chore: add english translation for "Beta" * tweak: add beta tags to communities and chat home screen titles * fix: use smaller size for beta tags on chat and communities home screens
1 parent 75280c4 commit d4a58ac

File tree

4 files changed

+25
-6
lines changed

4 files changed

+25
-6
lines changed

Diff for: src/status_im/common/home/title_column/view.cljs

+20-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,30 @@
33
[quo.core :as quo]
44
[react-native.core :as rn]
55
[status-im.common.home.title-column.style :as style]
6-
[status-im.common.plus-button.view :as plus-button]))
6+
[status-im.common.plus-button.view :as plus-button]
7+
[utils.i18n :as i18n]))
78

89
(defn view
9-
[{:keys [label handler accessibility-label customization-color]}]
10+
[{:keys [beta? label handler accessibility-label customization-color]}]
1011
[rn/view style/title-column
11-
[rn/view {:flex 1}
12+
[rn/view
13+
{:style {:flex 1
14+
:align-items :center
15+
:flex-direction :row}}
1216
[quo/text style/title-column-text
13-
label]]
17+
label]
18+
(when beta?
19+
[rn/view
20+
{:style {:padding-top 6
21+
:padding-bottom 2}}
22+
[quo/tag
23+
{:accessibility-label :communities-chat-beta-tag
24+
:size 24
25+
:type :label
26+
:label (i18n/label :t/beta)
27+
:labelled? true
28+
:blurred? false}]])]
29+
1430
(when handler
1531
[plus-button/plus-button
1632
{:on-press handler

Diff for: src/status_im/contexts/chat/home/view.cljs

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@
118118
(defn- banner-data
119119
[profile-link]
120120
{:title-props
121-
{:label (i18n/label :t/messages)
121+
{:beta? true
122+
:label (i18n/label :t/messages)
122123
:handler #(rf/dispatch
123124
[:show-bottom-sheet {:content chat.actions.view/new-chat}])
124125
:accessibility-label :new-chat-button}

Diff for: src/status_im/contexts/communities/home/view.cljs

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464

6565
(def ^:private banner-data
6666
{:title-props
67-
{:label (i18n/label :t/communities)
67+
{:beta? true
68+
:label (i18n/label :t/communities)
6869
:handler (when config/fast-create-community-enabled?
6970
#(rf/dispatch [:show-bottom-sheet {:content actions.home-plus/view}]))
7071
:accessibility-label :new-communities-button}

Diff for: translations/en.json

+1
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
"balance": "Balance",
187187
"begin-set-up": "Begin setup",
188188
"below-base-fee": "max fee below base fee",
189+
"beta": "Beta",
189190
"bio": "Bio",
190191
"bio-added": "Bio added",
191192
"bio-is-too-long": "Bio is too long",

0 commit comments

Comments
 (0)