From 04360355d70d06161d2dd5ed98d3f2e716fad069 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Mon, 2 Oct 2023 13:02:24 +0530 Subject: [PATCH] swap old switch component with new selector just so that tapping on settings item works. --- src/quo/components/list/item.cljs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/quo/components/list/item.cljs b/src/quo/components/list/item.cljs index ed734440d8ee..df17bf617571 100644 --- a/src/quo/components/list/item.cljs +++ b/src/quo/components/list/item.cljs @@ -7,7 +7,8 @@ [quo.haptic :as haptic] [quo.platform :as platform] [quo.react-native :as rn] - [status-im.ui.components.icons.icons :as icons])) + [status-im.ui.components.icons.icons :as icons] + [quo2.components.selectors.selectors.view :as selectors])) (defn themes [theme] @@ -173,7 +174,8 @@ [title-column props]]) (defn right-side - [{:keys [chevron active disabled accessory accessory-text accessory-style animated-accessory?]}] + [{:keys [chevron active disabled accessory accessory-text accessory-style animated-accessory? + on-press]}] (when (or chevron accessory) [rn/view {:style (merge {:align-items :center @@ -194,7 +196,7 @@ :radio [controls/radio-view {:value active :disabled disabled}] :checkbox [(controls/checkbox) {:value active :disabled disabled}] - :switch [controls/switch-view {:value active :disabled disabled}] + :switch [selectors/toggle {:on-press on-press}] :text [text/text {:color :secondary :ellipsize-mode :middle