remove ens banner component (#14112)

This commit is contained in:
Parvesh Monu 2022-10-06 12:31:07 +05:30 committed by GitHub
parent 73983b2abd
commit 1f6ebbb5e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 36 deletions

View File

@ -328,8 +328,9 @@
;; Information Box ;; Information Box
(def closable-information-boxes (def closable-information-boxes
[{:id :ens-banner "[{:id information box id
:global? true}]) ;; global? - close information box across all profiles :global? true/false (close information box across all profiles)}]"
[])
(defn information-box-id-hash [id public-key global?] (defn information-box-id-hash [id public-key global?]
(if global? (if global?

View File

@ -26,12 +26,10 @@
[status-im.utils.config :as config] [status-im.utils.config :as config]
[quo2.components.markdown.text :as quo2.text] [quo2.components.markdown.text :as quo2.text]
[status-im.qr-scanner.core :as qr-scanner] [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.screen :as chat-icon.screen]
[status-im.ui.components.chat-icon.styles :as chat-icon.styles] [status-im.ui.components.chat-icon.styles :as chat-icon.styles]
[quo2.foundations.colors :as quo2.colors] [quo2.foundations.colors :as quo2.colors]
[quo2.components.buttons.button :as quo2.button] [quo2.components.buttons.button :as quo2.button])
[quo2.components.info.information-box :as information-box])
(:require-macros [status-im.utils.views :as views])) (:require-macros [status-im.utils.views :as views]))
(defn home-tooltip-view [] (defn home-tooltip-view []
@ -189,12 +187,9 @@
[home-tooltip-view] [home-tooltip-view]
[react/view {:height 68}])}]))) [react/view {:height 68}])}])))
(def ens-banner-expire-timestamp 1665010800)
(views/defview communities-and-chats-old [] (views/defview communities-and-chats-old []
(views/letsubs [{:keys [items search-filter]} [:home-items] (views/letsubs [{:keys [items search-filter]} [:home-items]
hide-home-tooltip? [:hide-home-tooltip?] hide-home-tooltip? [:hide-home-tooltip?]]
information-box-closed? [:information-box-closed? :ens-banner]]
(if (and (empty? items) (if (and (empty? items)
(empty? search-filter) (empty? search-filter)
hide-home-tooltip? hide-home-tooltip?
@ -210,19 +205,6 @@
:header [:<> :header [:<>
(when (or (seq items) @search-active? (seq search-filter)) (when (or (seq items) @search-active? (seq search-filter))
[search-input-wrapper-old search-filter (empty? items)]) [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) (when (and (empty? items)
(or @search-active? (seq search-filter))) (or @search-active? (seq search-filter)))
[start-suggestion search-filter])] [start-suggestion search-filter])]

View File

@ -991,8 +991,6 @@
"open": "Open", "open": "Open",
"open-home": "Open...", "open-home": "Open...",
"open-dapp": "Open ÐApp", "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-dapp-store": "Discover ÐApps",
"open-nfc-settings": "Open NFC settings", "open-nfc-settings": "Open NFC settings",
"open-on-block-explorer": "Open on block explorer", "open-on-block-explorer": "Open on block explorer",

View File

@ -564,7 +564,6 @@
"ens-10-SNT": "10 एसएनटी", "ens-10-SNT": "10 एसएनटी",
"ens-add-username": "उपयोगकर्ता नाम जोड़ें", "ens-add-username": "उपयोगकर्ता नाम जोड़ें",
"ens-agree-to": "सहमत होना", "ens-agree-to": "सहमत होना",
"ens-banner-message": "यदि आपने एक Stateofus.eth नाम पंजीकृत किया है तो आप $ENS एकत्र करने के योग्य हो सकते हैं",
"ens-chat-settings": "चैट सेटिंग्स", "ens-chat-settings": "चैट सेटिंग्स",
"ens-custom-domain": "कस्टम डोमेन", "ens-custom-domain": "कस्टम डोमेन",
"ens-custom-username-hints": "कस्टम डोमेन जैसे username.domain.eth . सहित संपूर्ण उपयोगकर्ता नाम टाइप करें", "ens-custom-username-hints": "कस्टम डोमेन जैसे username.domain.eth . सहित संपूर्ण उपयोगकर्ता नाम टाइप करें",
@ -1177,7 +1176,6 @@
"open-chat": "चैट खोलें", "open-chat": "चैट खोलें",
"open-dapp": "ऐप . खोलें", "open-dapp": "ऐप . खोलें",
"open-dapp-store": "ऐप्स . खोजें", "open-dapp-store": "ऐप्स . खोजें",
"open-dapp2": "डीएपी खोलें",
"open-home": "खुला...", "open-home": "खुला...",
"open-in-new-tab": "नए टैब में खोलें", "open-in-new-tab": "नए टैब में खोलें",
"open-membership": "खुली सदस्यता", "open-membership": "खुली सदस्यता",

View File

@ -553,7 +553,6 @@
"ens-10-SNT": "10 SNT", "ens-10-SNT": "10 SNT",
"ens-add-username": "ユーザ名を追加", "ens-add-username": "ユーザ名を追加",
"ens-agree-to": "に同意する", "ens-agree-to": "に同意する",
"ens-banner-message": "stateofus.eth 名を登録した方は、$ENS を収集する資格がある可能性があります",
"ens-chat-settings": "チャット設定", "ens-chat-settings": "チャット設定",
"ens-custom-domain": "カスタムドメイン", "ens-custom-domain": "カスタムドメイン",
"ens-custom-username-hints": "username.domain.eth のようにカスタムドメインを含むユーザ名全体を入力してください", "ens-custom-username-hints": "username.domain.eth のようにカスタムドメインを含むユーザ名全体を入力してください",
@ -1164,7 +1163,6 @@
"open-chat": "チャットを開く", "open-chat": "チャットを開く",
"open-dapp": "ÐAppを開く", "open-dapp": "ÐAppを開く",
"open-dapp-store": "ÐAppsを見つける", "open-dapp-store": "ÐAppsを見つける",
"open-dapp2": "dAppを開く",
"open-home": "開く", "open-home": "開く",
"open-in-new-tab": "新しいタブで開く", "open-in-new-tab": "新しいタブで開く",
"open-membership": "オープンメンバーシップ", "open-membership": "オープンメンバーシップ",

View File

@ -564,7 +564,6 @@
"ens-10-SNT": "10 SNT", "ens-10-SNT": "10 SNT",
"ens-add-username": "Adicionar nome de usuário ", "ens-add-username": "Adicionar nome de usuário ",
"ens-agree-to": "Concordo com", "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-chat-settings": "Configurações de bate-papo",
"ens-custom-domain": "Domínio personalizado", "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", "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-chat": "Abrir chat",
"open-dapp": "Abrir ÐApp", "open-dapp": "Abrir ÐApp",
"open-dapp-store": "Descubra ÐApps", "open-dapp-store": "Descubra ÐApps",
"open-dapp2": "Abrir dApp",
"open-home": "Abrir...", "open-home": "Abrir...",
"open-in-new-tab": "Abrir em nova aba", "open-in-new-tab": "Abrir em nova aba",
"open-membership": "Participação aberta", "open-membership": "Participação aberta",

View File

@ -597,7 +597,6 @@
"ens-10-SNT": "10 SNT", "ens-10-SNT": "10 SNT",
"ens-add-username": "Добавить имя пользователя", "ens-add-username": "Добавить имя пользователя",
"ens-agree-to": "Согласиться с ", "ens-agree-to": "Согласиться с ",
"ens-banner-message": "Если вы зарегистрировали имя на stateofus.eth, вы можете получить право на получение $ENS.",
"ens-chat-settings": "Настройки чата", "ens-chat-settings": "Настройки чата",
"ens-custom-domain": "Пользовательский домен", "ens-custom-domain": "Пользовательский домен",
"ens-custom-username-hints": "Введите полное имя пользователя, включая пользовательский домен, например username.domain.eth", "ens-custom-username-hints": "Введите полное имя пользователя, включая пользовательский домен, например username.domain.eth",
@ -1216,7 +1215,6 @@
"open-chat": "Создать чат", "open-chat": "Создать чат",
"open-dapp": "Открыть ÐApp", "open-dapp": "Открыть ÐApp",
"open-dapp-store": "Откройте для себя мир ÐApp-приложений", "open-dapp-store": "Откройте для себя мир ÐApp-приложений",
"open-dapp2": "Открыть dApp",
"open-home": "Открыть...", "open-home": "Открыть...",
"open-in-new-tab": "Открыть в новой вкладке", "open-in-new-tab": "Открыть в новой вкладке",
"open-membership": "Открытое участие", "open-membership": "Открытое участие",