Skip to content

Commit

Permalink
swap old switch component with new selector
Browse files Browse the repository at this point in the history
just so that tapping on settings item works.
  • Loading branch information
siddarthkay committed Oct 2, 2023
1 parent e8edbb0 commit 0e4e836
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/quo/components/list/item.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0e4e836

Please sign in to comment.