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,16 +65,17 @@
|
||||||
:context-tag {:type :community
|
:context-tag {:type :community
|
||||||
:community-logo logo
|
:community-logo logo
|
||||||
:community-name name}}]
|
:community-name name}}]
|
||||||
[quo/drawer-top
|
(when config/show-not-implemented-features?
|
||||||
{:type :context-tag
|
[quo/drawer-top
|
||||||
:context-tag-type :community
|
{:type :context-tag
|
||||||
:title (i18n/label :t/airdrop-addresses)
|
:context-tag-type :community
|
||||||
:community-name name
|
:title (i18n/label :t/airdrop-addresses)
|
||||||
:button-icon :i/info
|
:community-name name
|
||||||
:button-type :grey
|
:button-icon :i/info
|
||||||
:on-button-press not-implemented/alert
|
:button-type :grey
|
||||||
:community-logo logo
|
:on-button-press not-implemented/alert
|
||||||
:customization-color color}])
|
:community-logo logo
|
||||||
|
: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
|
||||||
[]
|
[]
|
||||||
{:icon :i/token
|
(when config/show-not-implemented-features?
|
||||||
:right-icon :i/chevron-right
|
{:icon :i/token
|
||||||
:accessibility-label :chat-view-token-requirements
|
:right-icon :i/chevron-right
|
||||||
:on-press not-implemented/alert
|
:accessibility-label :chat-view-token-requirements
|
||||||
:label (i18n/label :t/view-token-gating)})
|
:on-press not-implemented/alert
|
||||||
|
:label (i18n/label :t/view-token-gating)}))
|
||||||
|
|
||||||
(defn- action-mark-as-read
|
(defn- action-mark-as-read
|
||||||
[]
|
[]
|
||||||
{:icon :i/mark-as-read
|
(when config/show-not-implemented-features?
|
||||||
:accessibility-label :chat-mark-as-read
|
{:icon :i/mark-as-read
|
||||||
:on-press not-implemented/alert
|
:accessibility-label :chat-mark-as-read
|
||||||
:label (i18n/label :t/mark-as-read)})
|
:on-press not-implemented/alert
|
||||||
|
: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
|
||||||
[]
|
[]
|
||||||
{:icon :i/notifications
|
(when config/show-not-implemented-features?
|
||||||
:right-icon :i/chevron-right
|
{:icon :i/notifications
|
||||||
:accessibility-label :chat-notification-settings
|
:right-icon :i/chevron-right
|
||||||
:on-press not-implemented/alert
|
:accessibility-label :chat-notification-settings
|
||||||
:label (i18n/label :t/notification-settings)
|
:on-press not-implemented/alert
|
||||||
:sub-label (i18n/label :t/only-mentions)})
|
:label (i18n/label :t/notification-settings)
|
||||||
|
: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
|
||||||
[]
|
[]
|
||||||
{:icon :i/add-user
|
(when config/show-not-implemented-features?
|
||||||
:accessibility-label :chat-invite-people
|
{:icon :i/add-user
|
||||||
:on-press not-implemented/alert
|
:accessibility-label :chat-invite-people
|
||||||
:label (i18n/label :t/invite-people-from-contacts)})
|
:on-press not-implemented/alert
|
||||||
|
: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})
|
||||||
{:icon :i/untrustworthy
|
(when config/show-not-implemented-features?
|
||||||
:label (i18n/label :t/mark-untrustworthy)
|
{:icon :i/untrustworthy
|
||||||
:on-press not-implemented/alert
|
:label (i18n/label :t/mark-untrustworthy)
|
||||||
:accessibility-label :mark-untrustworthy
|
:on-press not-implemented/alert
|
||||||
:add-divider? (when-not has-nickname? true)
|
:accessibility-label :mark-untrustworthy
|
||||||
:danger? true}
|
:add-divider? (when-not has-nickname? 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
|
||||||
[]
|
[]
|
||||||
{:title (i18n/label :t/change-password)
|
(when config/show-not-implemented-features?
|
||||||
:on-press not-implemented/alert
|
{:title (i18n/label :t/change-password)
|
||||||
:blur? true
|
:on-press not-implemented/alert
|
||||||
:image :icon
|
:blur? true
|
||||||
:image-props :i/password
|
:image :icon
|
||||||
:action :arrow})
|
:image-props :i/password
|
||||||
|
:action :arrow}))
|
||||||
|
|
||||||
(defn- navigate-back
|
(defn- navigate-back
|
||||||
[]
|
[]
|
||||||
|
|
Loading…
Reference in New Issue