fix: remove quo preview from nightly builds (#18556)
This commit is contained in:
parent
9a4bc7e250
commit
ca2b1d5c8e
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
(defn- category-internal
|
(defn- category-internal
|
||||||
[{:keys [label data container-style] :as props}]
|
[{:keys [label data container-style] :as props}]
|
||||||
|
(let [settings-item (filter identity data)]
|
||||||
[rn/view {:style (merge (style/container label) container-style)}
|
[rn/view {:style (merge (style/container label) container-style)}
|
||||||
(when label
|
(when label
|
||||||
[text/text
|
[text/text
|
||||||
|
@ -16,11 +17,11 @@
|
||||||
:style (style/label props)}
|
:style (style/label props)}
|
||||||
label])
|
label])
|
||||||
[rn/view {:style (style/settings-items props)}
|
[rn/view {:style (style/settings-items props)}
|
||||||
(for [item data]
|
(for [item settings-item]
|
||||||
^{:key item}
|
^{:key item}
|
||||||
[:<>
|
[:<>
|
||||||
[settings-item/view item]
|
[settings-item/view item]
|
||||||
(when-not (= item (last data))
|
(when-not (= item (last settings-item))
|
||||||
[rn/view {:style (style/settings-separator props)}])])]])
|
[rn/view {:style (style/settings-separator props)}])])]]))
|
||||||
|
|
||||||
(def settings-category (quo.theme/with-theme category-internal))
|
(def settings-category (quo.theme/with-theme category-internal))
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
(ns status-im.contexts.profile.settings.list-items
|
(ns status-im.contexts.profile.settings.list-items
|
||||||
(:require [status-im.common.not-implemented :as not-implemented]
|
(:require [status-im.common.not-implemented :as not-implemented]
|
||||||
|
[status-im.config :as config]
|
||||||
[utils.i18n :as i18n]
|
[utils.i18n :as i18n]
|
||||||
[utils.re-frame :as rf]))
|
[utils.re-frame :as rf]))
|
||||||
|
|
||||||
|
@ -89,12 +90,13 @@
|
||||||
:image :icon
|
:image :icon
|
||||||
:blur? true
|
:blur? true
|
||||||
:image-props :i/toggle}
|
:image-props :i/toggle}
|
||||||
|
(when config/quo-preview-enabled?
|
||||||
{:title "Quo preview"
|
{:title "Quo preview"
|
||||||
:on-press #(rf/dispatch [:navigate-to :quo-preview])
|
:on-press #(rf/dispatch [:navigate-to :quo-preview])
|
||||||
:action :arrow
|
:action :arrow
|
||||||
:image :icon
|
:image :icon
|
||||||
:blur? true
|
:blur? true
|
||||||
:image-props :i/light}]
|
:image-props :i/light})]
|
||||||
[{:title (i18n/label :t/about)
|
[{:title (i18n/label :t/about)
|
||||||
:on-press not-implemented/alert
|
:on-press not-implemented/alert
|
||||||
:action :arrow}
|
:action :arrow}
|
||||||
|
|
Loading…
Reference in New Issue