Skip to content

Commit

Permalink
ref: removed theme from enable-biometrics
Browse files Browse the repository at this point in the history
  • Loading branch information
clauxx committed Nov 22, 2023
1 parent 29f3f60 commit 2054a48
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/status_im2/contexts/onboarding/enable_biometrics/view.cljs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(ns status-im2.contexts.onboarding.enable-biometrics.view
(:require
[quo.core :as quo]
[quo.theme :as quo.theme]
[react-native.core :as rn]
[react-native.safe-area :as safe-area]
[status-im2.common.biometric.events :as biometric]
Expand All @@ -25,7 +24,7 @@
:description-accessibility-label :enable-biometrics-sub-title}])

(defn enable-biometrics-buttons
[insets theme]
[insets]
(let [supported-biometric-type (rf/sub [:biometric/supported-type])
bio-type-label (biometric/get-label-by-type supported-biometric-type)
profile-color (or (:color (rf/sub [:onboarding-2/profile]))
Expand All @@ -37,7 +36,6 @@
:accessibility-label :enable-biometrics-button
:icon-left :i/face-id
:customization-color profile-color
:theme theme
:on-press #(rf/dispatch [:onboarding-2/enable-biometrics])
:button-label (i18n/label :t/biometric-enable-button {:bio-type-label bio-type-label})}]
[quo/button
Expand Down Expand Up @@ -67,18 +65,16 @@
:source (resources/get-image :biometrics)}]))

(defn f-enable-biometrics
[{:keys [theme]}]
[]
(let [insets (safe-area/get-insets)]
[rn/view {:style (style/page-container insets)}
[page-title]
(if whitelist/whitelisted?
[enable-biometrics-parallax]
[enable-biometrics-simple])
[enable-biometrics-buttons insets theme]]))

[enable-biometrics-buttons insets]]))

(defn- internale-enable-biometrics
[params]
[:f> f-enable-biometrics params])
(defn view
[]
[:f> f-enable-biometrics])

(def view (quo.theme/with-theme internale-enable-biometrics))

0 comments on commit 2054a48

Please sign in to comment.