|
26 | 26 | [status-im.utils.config :as config]
|
27 | 27 | [quo2.components.text :as quo2.text]
|
28 | 28 | [status-im.qr-scanner.core :as qr-scanner]
|
| 29 | + [status-im.utils.datetime :as datetime] |
29 | 30 | [status-im.ui.components.chat-icon.screen :as chat-icon.screen]
|
30 | 31 | [status-im.ui.components.chat-icon.styles :as chat-icon.styles]
|
31 | 32 | [quo2.foundations.colors :as quo2.colors]
|
|
188 | 189 | [home-tooltip-view]
|
189 | 190 | [react/view {:height 68}])}])))
|
190 | 191 |
|
| 192 | +(def ens-banner-expire-timestamp 1665010800) |
| 193 | + |
191 | 194 | (views/defview communities-and-chats-old []
|
192 | 195 | (views/letsubs [{:keys [items search-filter]} [:home-items]
|
193 | 196 | hide-home-tooltip? [:hide-home-tooltip?]
|
|
207 | 210 | :header [:<>
|
208 | 211 | (when (or (seq items) @search-active? (seq search-filter))
|
209 | 212 | [search-input-wrapper-old search-filter (empty? items)])
|
210 |
| - [information-box/information-box |
211 |
| - {:type :informative |
212 |
| - :closable? true |
213 |
| - :closed? information-box-closed? |
214 |
| - :icon :main-icons/info |
215 |
| - :style {:margin 20} |
216 |
| - :button-label (i18n/label :t/open-dapp2) |
217 |
| - :on-button-press #(re-frame/dispatch |
218 |
| - [:browser.ui/open-url "https://ens-collect.status.im/"]) |
219 |
| - :id :ens-banner |
220 |
| - :on-close #(re-frame/dispatch [:close-information-box :ens-banner true])} |
221 |
| - (i18n/label :t/ens-banner-message)] |
| 213 | + (when (< (datetime/timestamp-sec) ens-banner-expire-timestamp) |
| 214 | + [information-box/information-box |
| 215 | + {:type :informative |
| 216 | + :closable? true |
| 217 | + :closed? information-box-closed? |
| 218 | + :icon :main-icons/info |
| 219 | + :style {:margin 20} |
| 220 | + :button-label (i18n/label :t/open-dapp2) |
| 221 | + :on-button-press #(re-frame/dispatch |
| 222 | + [:browser.ui/open-url "https://ens-collect.status.im/"]) |
| 223 | + :id :ens-banner |
| 224 | + :on-close #(re-frame/dispatch [:close-information-box :ens-banner true])} |
| 225 | + (i18n/label :t/ens-banner-message)]) |
222 | 226 | (when (and (empty? items)
|
223 | 227 | (or @search-active? (seq search-filter)))
|
224 | 228 | [start-suggestion search-filter])]
|
|
0 commit comments