feature/hide-all-alert-under-not-implemented-flag (#19889)
This commit is contained in:
parent
25e3a56dba
commit
e6ee2714d7
|
@ -4,6 +4,7 @@
|
||||||
[react-native.core :as rn]
|
[react-native.core :as rn]
|
||||||
[react-native.gesture :as gesture]
|
[react-native.gesture :as gesture]
|
||||||
[status-im.common.not-implemented :as not-implemented]
|
[status-im.common.not-implemented :as not-implemented]
|
||||||
|
[status-im.config :as config]
|
||||||
[status-im.contexts.communities.actions.airdrop-addresses.style :as style]
|
[status-im.contexts.communities.actions.airdrop-addresses.style :as style]
|
||||||
[utils.i18n :as i18n]
|
[utils.i18n :as i18n]
|
||||||
[utils.re-frame :as rf]))
|
[utils.re-frame :as rf]))
|
||||||
|
@ -64,6 +65,7 @@
|
||||||
:context-tag {:type :community
|
:context-tag {:type :community
|
||||||
:community-logo logo
|
:community-logo logo
|
||||||
:community-name name}}]
|
:community-name name}}]
|
||||||
|
(when config/show-not-implemented-features?
|
||||||
[quo/drawer-top
|
[quo/drawer-top
|
||||||
{:type :context-tag
|
{:type :context-tag
|
||||||
:context-tag-type :community
|
:context-tag-type :community
|
||||||
|
@ -73,7 +75,7 @@
|
||||||
:button-type :grey
|
:button-type :grey
|
||||||
:on-button-press not-implemented/alert
|
:on-button-press not-implemented/alert
|
||||||
:community-logo logo
|
:community-logo logo
|
||||||
:customization-color color}])
|
:customization-color color}]))
|
||||||
|
|
||||||
[gesture/flat-list
|
[gesture/flat-list
|
||||||
{:data accounts
|
{:data accounts
|
||||||
|
|
|
@ -39,18 +39,20 @@
|
||||||
|
|
||||||
(defn- action-token-requirements
|
(defn- action-token-requirements
|
||||||
[]
|
[]
|
||||||
|
(when config/show-not-implemented-features?
|
||||||
{:icon :i/token
|
{:icon :i/token
|
||||||
:right-icon :i/chevron-right
|
:right-icon :i/chevron-right
|
||||||
:accessibility-label :chat-view-token-requirements
|
:accessibility-label :chat-view-token-requirements
|
||||||
:on-press not-implemented/alert
|
:on-press not-implemented/alert
|
||||||
:label (i18n/label :t/view-token-gating)})
|
:label (i18n/label :t/view-token-gating)}))
|
||||||
|
|
||||||
(defn- action-mark-as-read
|
(defn- action-mark-as-read
|
||||||
[]
|
[]
|
||||||
|
(when config/show-not-implemented-features?
|
||||||
{:icon :i/mark-as-read
|
{:icon :i/mark-as-read
|
||||||
:accessibility-label :chat-mark-as-read
|
:accessibility-label :chat-mark-as-read
|
||||||
:on-press not-implemented/alert
|
:on-press not-implemented/alert
|
||||||
:label (i18n/label :t/mark-as-read)})
|
:label (i18n/label :t/mark-as-read)}))
|
||||||
|
|
||||||
(defn- action-toggle-muted
|
(defn- action-toggle-muted
|
||||||
[id muted? muted-till chat-type]
|
[id muted? muted-till chat-type]
|
||||||
|
@ -71,12 +73,13 @@
|
||||||
|
|
||||||
(defn- action-notification-settings
|
(defn- action-notification-settings
|
||||||
[]
|
[]
|
||||||
|
(when config/show-not-implemented-features?
|
||||||
{:icon :i/notifications
|
{:icon :i/notifications
|
||||||
:right-icon :i/chevron-right
|
:right-icon :i/chevron-right
|
||||||
:accessibility-label :chat-notification-settings
|
:accessibility-label :chat-notification-settings
|
||||||
:on-press not-implemented/alert
|
:on-press not-implemented/alert
|
||||||
:label (i18n/label :t/notification-settings)
|
:label (i18n/label :t/notification-settings)
|
||||||
:sub-label (i18n/label :t/only-mentions)})
|
:sub-label (i18n/label :t/only-mentions)}))
|
||||||
|
|
||||||
(defn- action-pinned-messages
|
(defn- action-pinned-messages
|
||||||
[chat-id]
|
[chat-id]
|
||||||
|
@ -91,10 +94,11 @@
|
||||||
|
|
||||||
(defn- action-invite-people
|
(defn- action-invite-people
|
||||||
[]
|
[]
|
||||||
|
(when config/show-not-implemented-features?
|
||||||
{:icon :i/add-user
|
{:icon :i/add-user
|
||||||
:accessibility-label :chat-invite-people
|
:accessibility-label :chat-invite-people
|
||||||
:on-press not-implemented/alert
|
:on-press not-implemented/alert
|
||||||
:label (i18n/label :t/invite-people-from-contacts)})
|
:label (i18n/label :t/invite-people-from-contacts)}))
|
||||||
|
|
||||||
(defn- action-qr-code
|
(defn- action-qr-code
|
||||||
[chat-id]
|
[chat-id]
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
[quo.core :as quo]
|
[quo.core :as quo]
|
||||||
[react-native.core :as rn]
|
[react-native.core :as rn]
|
||||||
[status-im.common.not-implemented :as not-implemented]
|
[status-im.common.not-implemented :as not-implemented]
|
||||||
|
[status-im.config :as config]
|
||||||
[status-im.constants :as constants]
|
[status-im.constants :as constants]
|
||||||
[status-im.contexts.profile.contact.add-nickname.view :as add-nickname]
|
[status-im.contexts.profile.contact.add-nickname.view :as add-nickname]
|
||||||
[status-im.contexts.profile.contact.block-contact.view :as block-contact]
|
[status-im.contexts.profile.contact.block-contact.view :as block-contact]
|
||||||
|
@ -86,12 +87,13 @@
|
||||||
:add-divider? true
|
:add-divider? true
|
||||||
:accessibility-label :remove-nickname
|
:accessibility-label :remove-nickname
|
||||||
:danger? true})
|
:danger? true})
|
||||||
|
(when config/show-not-implemented-features?
|
||||||
{:icon :i/untrustworthy
|
{:icon :i/untrustworthy
|
||||||
:label (i18n/label :t/mark-untrustworthy)
|
:label (i18n/label :t/mark-untrustworthy)
|
||||||
:on-press not-implemented/alert
|
:on-press not-implemented/alert
|
||||||
:accessibility-label :mark-untrustworthy
|
:accessibility-label :mark-untrustworthy
|
||||||
:add-divider? (when-not has-nickname? true)
|
:add-divider? (when-not has-nickname? true)
|
||||||
:danger? true}
|
:danger? true})
|
||||||
(when (= constants/contact-request-state-mutual contact-request-state)
|
(when (= constants/contact-request-state-mutual contact-request-state)
|
||||||
{:icon :i/remove-user
|
{:icon :i/remove-user
|
||||||
:label (i18n/label :t/remove-contact)
|
:label (i18n/label :t/remove-contact)
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
[quo.theme :as quo.theme]
|
[quo.theme :as quo.theme]
|
||||||
[status-im.common.biometric.utils :as biometric]
|
[status-im.common.biometric.utils :as biometric]
|
||||||
[status-im.common.not-implemented :as not-implemented]
|
[status-im.common.not-implemented :as not-implemented]
|
||||||
|
[status-im.config :as config]
|
||||||
[status-im.constants :as constants]
|
[status-im.constants :as constants]
|
||||||
[utils.i18n :as i18n]
|
[utils.i18n :as i18n]
|
||||||
[utils.re-frame :as rf]))
|
[utils.re-frame :as rf]))
|
||||||
|
@ -46,12 +47,13 @@
|
||||||
|
|
||||||
(defn- get-change-password-item
|
(defn- get-change-password-item
|
||||||
[]
|
[]
|
||||||
|
(when config/show-not-implemented-features?
|
||||||
{:title (i18n/label :t/change-password)
|
{:title (i18n/label :t/change-password)
|
||||||
:on-press not-implemented/alert
|
:on-press not-implemented/alert
|
||||||
:blur? true
|
:blur? true
|
||||||
:image :icon
|
:image :icon
|
||||||
:image-props :i/password
|
:image-props :i/password
|
||||||
:action :arrow})
|
:action :arrow}))
|
||||||
|
|
||||||
(defn- navigate-back
|
(defn- navigate-back
|
||||||
[]
|
[]
|
||||||
|
|
Loading…
Reference in New Issue