remove ens banner component (#14112)
This commit is contained in:
parent
73983b2abd
commit
1f6ebbb5e8
|
@ -328,8 +328,9 @@
|
|||
;; Information Box
|
||||
|
||||
(def closable-information-boxes
|
||||
[{:id :ens-banner
|
||||
:global? true}]) ;; global? - close information box across all profiles
|
||||
"[{:id information box id
|
||||
:global? true/false (close information box across all profiles)}]"
|
||||
[])
|
||||
|
||||
(defn information-box-id-hash [id public-key global?]
|
||||
(if global?
|
||||
|
|
|
@ -26,12 +26,10 @@
|
|||
[status-im.utils.config :as config]
|
||||
[quo2.components.markdown.text :as quo2.text]
|
||||
[status-im.qr-scanner.core :as qr-scanner]
|
||||
[status-im.utils.datetime :as datetime]
|
||||
[status-im.ui.components.chat-icon.screen :as chat-icon.screen]
|
||||
[status-im.ui.components.chat-icon.styles :as chat-icon.styles]
|
||||
[quo2.foundations.colors :as quo2.colors]
|
||||
[quo2.components.buttons.button :as quo2.button]
|
||||
[quo2.components.info.information-box :as information-box])
|
||||
[quo2.components.buttons.button :as quo2.button])
|
||||
(:require-macros [status-im.utils.views :as views]))
|
||||
|
||||
(defn home-tooltip-view []
|
||||
|
@ -189,12 +187,9 @@
|
|||
[home-tooltip-view]
|
||||
[react/view {:height 68}])}])))
|
||||
|
||||
(def ens-banner-expire-timestamp 1665010800)
|
||||
|
||||
(views/defview communities-and-chats-old []
|
||||
(views/letsubs [{:keys [items search-filter]} [:home-items]
|
||||
hide-home-tooltip? [:hide-home-tooltip?]
|
||||
information-box-closed? [:information-box-closed? :ens-banner]]
|
||||
hide-home-tooltip? [:hide-home-tooltip?]]
|
||||
(if (and (empty? items)
|
||||
(empty? search-filter)
|
||||
hide-home-tooltip?
|
||||
|
@ -210,19 +205,6 @@
|
|||
:header [:<>
|
||||
(when (or (seq items) @search-active? (seq search-filter))
|
||||
[search-input-wrapper-old search-filter (empty? items)])
|
||||
(when (< (datetime/timestamp-sec) ens-banner-expire-timestamp)
|
||||
[information-box/information-box
|
||||
{:type :informative
|
||||
:closable? true
|
||||
:closed? information-box-closed?
|
||||
:icon :main-icons/info
|
||||
:style {:margin 20}
|
||||
:button-label (i18n/label :t/open-dapp2)
|
||||
:on-button-press #(re-frame/dispatch
|
||||
[:browser.ui/open-url "https://ens-collect.status.im/"])
|
||||
:id :ens-banner
|
||||
:on-close #(re-frame/dispatch [:close-information-box :ens-banner true])}
|
||||
(i18n/label :t/ens-banner-message)])
|
||||
(when (and (empty? items)
|
||||
(or @search-active? (seq search-filter)))
|
||||
[start-suggestion search-filter])]
|
||||
|
|
|
@ -991,8 +991,6 @@
|
|||
"open": "Open",
|
||||
"open-home": "Open...",
|
||||
"open-dapp": "Open ÐApp",
|
||||
"open-dapp2": "Open dApp",
|
||||
"ens-banner-message": "If you registered a stateofus.eth name you might be eligible to collect $ENS",
|
||||
"open-dapp-store": "Discover ÐApps",
|
||||
"open-nfc-settings": "Open NFC settings",
|
||||
"open-on-block-explorer": "Open on block explorer",
|
||||
|
|
|
@ -564,7 +564,6 @@
|
|||
"ens-10-SNT": "10 एसएनटी",
|
||||
"ens-add-username": "उपयोगकर्ता नाम जोड़ें",
|
||||
"ens-agree-to": "सहमत होना",
|
||||
"ens-banner-message": "यदि आपने एक Stateofus.eth नाम पंजीकृत किया है तो आप $ENS एकत्र करने के योग्य हो सकते हैं",
|
||||
"ens-chat-settings": "चैट सेटिंग्स",
|
||||
"ens-custom-domain": "कस्टम डोमेन",
|
||||
"ens-custom-username-hints": "कस्टम डोमेन जैसे username.domain.eth . सहित संपूर्ण उपयोगकर्ता नाम टाइप करें",
|
||||
|
@ -1177,7 +1176,6 @@
|
|||
"open-chat": "चैट खोलें",
|
||||
"open-dapp": "ऐप . खोलें",
|
||||
"open-dapp-store": "ऐप्स . खोजें",
|
||||
"open-dapp2": "डीएपी खोलें",
|
||||
"open-home": "खुला...",
|
||||
"open-in-new-tab": "नए टैब में खोलें",
|
||||
"open-membership": "खुली सदस्यता",
|
||||
|
|
|
@ -553,7 +553,6 @@
|
|||
"ens-10-SNT": "10 SNT",
|
||||
"ens-add-username": "ユーザ名を追加",
|
||||
"ens-agree-to": "に同意する",
|
||||
"ens-banner-message": "stateofus.eth 名を登録した方は、$ENS を収集する資格がある可能性があります",
|
||||
"ens-chat-settings": "チャット設定",
|
||||
"ens-custom-domain": "カスタムドメイン",
|
||||
"ens-custom-username-hints": "username.domain.eth のようにカスタムドメインを含むユーザ名全体を入力してください",
|
||||
|
@ -1164,7 +1163,6 @@
|
|||
"open-chat": "チャットを開く",
|
||||
"open-dapp": "ÐAppを開く",
|
||||
"open-dapp-store": "ÐAppsを見つける",
|
||||
"open-dapp2": "dAppを開く",
|
||||
"open-home": "開く",
|
||||
"open-in-new-tab": "新しいタブで開く",
|
||||
"open-membership": "オープンメンバーシップ",
|
||||
|
|
|
@ -564,7 +564,6 @@
|
|||
"ens-10-SNT": "10 SNT",
|
||||
"ens-add-username": "Adicionar nome de usuário ",
|
||||
"ens-agree-to": "Concordo com",
|
||||
"ens-banner-message": "Se você registrou um nome stateofus.eth, pode ser elegível para receber $ENS",
|
||||
"ens-chat-settings": "Configurações de bate-papo",
|
||||
"ens-custom-domain": "Domínio personalizado",
|
||||
"ens-custom-username-hints": "Digite o nome de usuário inteiro, incluindo o domínio personalizado, como nomedeusuario.domínio.eth",
|
||||
|
@ -1176,7 +1175,6 @@
|
|||
"open-chat": "Abrir chat",
|
||||
"open-dapp": "Abrir ÐApp",
|
||||
"open-dapp-store": "Descubra ÐApps",
|
||||
"open-dapp2": "Abrir dApp",
|
||||
"open-home": "Abrir...",
|
||||
"open-in-new-tab": "Abrir em nova aba",
|
||||
"open-membership": "Participação aberta",
|
||||
|
|
|
@ -597,7 +597,6 @@
|
|||
"ens-10-SNT": "10 SNT",
|
||||
"ens-add-username": "Добавить имя пользователя",
|
||||
"ens-agree-to": "Согласиться с ",
|
||||
"ens-banner-message": "Если вы зарегистрировали имя на stateofus.eth, вы можете получить право на получение $ENS.",
|
||||
"ens-chat-settings": "Настройки чата",
|
||||
"ens-custom-domain": "Пользовательский домен",
|
||||
"ens-custom-username-hints": "Введите полное имя пользователя, включая пользовательский домен, например username.domain.eth",
|
||||
|
@ -1216,7 +1215,6 @@
|
|||
"open-chat": "Создать чат",
|
||||
"open-dapp": "Открыть ÐApp",
|
||||
"open-dapp-store": "Откройте для себя мир ÐApp-приложений",
|
||||
"open-dapp2": "Открыть dApp",
|
||||
"open-home": "Открыть...",
|
||||
"open-in-new-tab": "Открыть в новой вкладке",
|
||||
"open-membership": "Открытое участие",
|
||||
|
|
Loading…
Reference in New Issue