parent
9338bf71ee
commit
ef988517f6
|
@ -26,6 +26,7 @@
|
||||||
[status-im.utils.config :as config]
|
[status-im.utils.config :as config]
|
||||||
[quo2.components.text :as quo2.text]
|
[quo2.components.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]
|
||||||
|
@ -188,6 +189,8 @@
|
||||||
[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?]
|
||||||
|
@ -207,6 +210,7 @@
|
||||||
: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
|
[information-box/information-box
|
||||||
{:type :informative
|
{:type :informative
|
||||||
:closable? true
|
:closable? true
|
||||||
|
@ -218,7 +222,7 @@
|
||||||
[:browser.ui/open-url "https://ens-collect.status.im/"])
|
[:browser.ui/open-url "https://ens-collect.status.im/"])
|
||||||
:id :ens-banner
|
:id :ens-banner
|
||||||
:on-close #(re-frame/dispatch [:close-information-box :ens-banner true])}
|
:on-close #(re-frame/dispatch [:close-information-box :ens-banner true])}
|
||||||
(i18n/label :t/ens-banner-message)]
|
(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])]
|
||||||
|
|
Loading…
Reference in New Issue