fix: remove quo preview from nightly builds (#18556)

This commit is contained in:
Mohsen 2024-01-22 19:08:34 +03:30 committed by GitHub
parent 9a4bc7e250
commit ca2b1d5c8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 23 additions and 20 deletions

View File

@ -8,19 +8,20 @@
(defn- category-internal (defn- category-internal
[{:keys [label data container-style] :as props}] [{:keys [label data container-style] :as props}]
[rn/view {:style (merge (style/container label) container-style)} (let [settings-item (filter identity data)]
(when label [rn/view {:style (merge (style/container label) container-style)}
[text/text (when label
{:weight :medium [text/text
:size :paragraph-2 {:weight :medium
:style (style/label props)} :size :paragraph-2
label]) :style (style/label props)}
[rn/view {:style (style/settings-items props)} label])
(for [item data] [rn/view {:style (style/settings-items props)}
^{:key item} (for [item settings-item]
[:<> ^{:key item}
[settings-item/view item] [:<>
(when-not (= item (last data)) [settings-item/view item]
[rn/view {:style (style/settings-separator props)}])])]]) (when-not (= item (last settings-item))
[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))

View File

@ -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}
{:title "Quo preview" (when config/quo-preview-enabled?
:on-press #(rf/dispatch [:navigate-to :quo-preview]) {:title "Quo preview"
:action :arrow :on-press #(rf/dispatch [:navigate-to :quo-preview])
:image :icon :action :arrow
:blur? true :image :icon
:image-props :i/light}] :blur? true
: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}