mirror of
https://github.com/status-im/status-mobile.git
synced 2025-03-01 08:40:50 +00:00
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
This commit is contained in:
parent
75280c4db6
commit
d4a58ac2fb
@ -3,14 +3,30 @@
|
|||||||
[quo.core :as quo]
|
[quo.core :as quo]
|
||||||
[react-native.core :as rn]
|
[react-native.core :as rn]
|
||||||
[status-im.common.home.title-column.style :as style]
|
[status-im.common.home.title-column.style :as style]
|
||||||
[status-im.common.plus-button.view :as plus-button]))
|
[status-im.common.plus-button.view :as plus-button]
|
||||||
|
[utils.i18n :as i18n]))
|
||||||
|
|
||||||
(defn view
|
(defn view
|
||||||
[{:keys [label handler accessibility-label customization-color]}]
|
[{:keys [beta? label handler accessibility-label customization-color]}]
|
||||||
[rn/view style/title-column
|
[rn/view style/title-column
|
||||||
[rn/view {:flex 1}
|
[rn/view
|
||||||
|
{:style {:flex 1
|
||||||
|
:align-items :center
|
||||||
|
:flex-direction :row}}
|
||||||
[quo/text style/title-column-text
|
[quo/text style/title-column-text
|
||||||
label]]
|
label]
|
||||||
|
(when beta?
|
||||||
|
[rn/view
|
||||||
|
{:style {:padding-top 6
|
||||||
|
:padding-bottom 2}}
|
||||||
|
[quo/tag
|
||||||
|
{:accessibility-label :communities-chat-beta-tag
|
||||||
|
:size 24
|
||||||
|
:type :label
|
||||||
|
:label (i18n/label :t/beta)
|
||||||
|
:labelled? true
|
||||||
|
:blurred? false}]])]
|
||||||
|
|
||||||
(when handler
|
(when handler
|
||||||
[plus-button/plus-button
|
[plus-button/plus-button
|
||||||
{:on-press handler
|
{:on-press handler
|
||||||
|
@ -118,7 +118,8 @@
|
|||||||
(defn- banner-data
|
(defn- banner-data
|
||||||
[profile-link]
|
[profile-link]
|
||||||
{:title-props
|
{:title-props
|
||||||
{:label (i18n/label :t/messages)
|
{:beta? true
|
||||||
|
:label (i18n/label :t/messages)
|
||||||
:handler #(rf/dispatch
|
:handler #(rf/dispatch
|
||||||
[:show-bottom-sheet {:content chat.actions.view/new-chat}])
|
[:show-bottom-sheet {:content chat.actions.view/new-chat}])
|
||||||
:accessibility-label :new-chat-button}
|
:accessibility-label :new-chat-button}
|
||||||
|
@ -64,7 +64,8 @@
|
|||||||
|
|
||||||
(def ^:private banner-data
|
(def ^:private banner-data
|
||||||
{:title-props
|
{:title-props
|
||||||
{:label (i18n/label :t/communities)
|
{:beta? true
|
||||||
|
:label (i18n/label :t/communities)
|
||||||
:handler (when config/fast-create-community-enabled?
|
:handler (when config/fast-create-community-enabled?
|
||||||
#(rf/dispatch [:show-bottom-sheet {:content actions.home-plus/view}]))
|
#(rf/dispatch [:show-bottom-sheet {:content actions.home-plus/view}]))
|
||||||
:accessibility-label :new-communities-button}
|
:accessibility-label :new-communities-button}
|
||||||
|
@ -186,6 +186,7 @@
|
|||||||
"balance": "Balance",
|
"balance": "Balance",
|
||||||
"begin-set-up": "Begin setup",
|
"begin-set-up": "Begin setup",
|
||||||
"below-base-fee": "max fee below base fee",
|
"below-base-fee": "max fee below base fee",
|
||||||
|
"beta": "Beta",
|
||||||
"bio": "Bio",
|
"bio": "Bio",
|
||||||
"bio-added": "Bio added",
|
"bio-added": "Bio added",
|
||||||
"bio-is-too-long": "Bio is too long",
|
"bio-is-too-long": "Bio is too long",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user