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