From f55476d1507a60ac5c6715240d4ccced84944c6f Mon Sep 17 00:00:00 2001 From: Jamie Caprani Date: Mon, 2 Oct 2023 12:19:50 +0100 Subject: [PATCH] adjust syncing page with slider button adjustments --- src/quo2/components/buttons/slide_button/animations.cljs | 2 +- src/quo2/components/buttons/slide_button/component_spec.cljs | 2 +- .../common/standard_authentication/standard_auth/view.cljs | 2 +- src/status_im2/contexts/syncing/setup_syncing/view.cljs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/quo2/components/buttons/slide_button/animations.cljs b/src/quo2/components/buttons/slide_button/animations.cljs index 1b1eb4dd0db0..dd4867cbafe3 100644 --- a/src/quo2/components/buttons/slide_button/animations.cljs +++ b/src/quo2/components/buttons/slide_button/animations.cljs @@ -22,7 +22,7 @@ (defn- track-cover-interpolation [track-width thumb-size] {:in [0 1] - :out [(/ thumb-size 1.8) track-width]}) + :out [thumb-size track-width]}) (defn- arrow-icon-position-interpolation [thumb-size] diff --git a/src/quo2/components/buttons/slide_button/component_spec.cljs b/src/quo2/components/buttons/slide_button/component_spec.cljs index 754a0764c96a..aba89e1a8b9f 100644 --- a/src/quo2/components/buttons/slide_button/component_spec.cljs +++ b/src/quo2/components/buttons/slide_button/component_spec.cljs @@ -81,7 +81,7 @@ (h/has-style track-mock {:opacity constants/disable-opacity}))) (h/test "render the small button" - (h/render [slide-button/view (assoc default-props :size :size/s-40)]) + (h/render [slide-button/view (assoc default-props :size :size-40)]) (let [mock (h/get-by-test-id :slide-button-track) small-height (:track-height constants/small-dimensions)] (h/has-style mock {:height small-height}))) diff --git a/src/status_im2/common/standard_authentication/standard_auth/view.cljs b/src/status_im2/common/standard_authentication/standard_auth/view.cljs index cbf78c024505..e38c2ab88853 100644 --- a/src/status_im2/common/standard_authentication/standard_auth/view.cljs +++ b/src/status_im2/common/standard_authentication/standard_auth/view.cljs @@ -73,7 +73,7 @@ :on-auth-success on-auth-success :on-auth-fail on-auth-fail :fallback-button-label fallback-button-label}) - :track-icon :i/face-id + :track-icon (if biometric-auth? :i/face-id :password) :track-text track-text}]]))) (def view (quo.theme/with-theme view-internal)) diff --git a/src/status_im2/contexts/syncing/setup_syncing/view.cljs b/src/status_im2/contexts/syncing/setup_syncing/view.cljs index 277645a65b01..87b1b6139406 100644 --- a/src/status_im2/contexts/syncing/setup_syncing/view.cljs +++ b/src/status_im2/contexts/syncing/setup_syncing/view.cljs @@ -118,7 +118,7 @@ [rn/view {:style style/standard-auth} [standard-auth/view {:blur? true - :size :size/s-40 + :size :size-40 :track-text (i18n/label :t/slide-to-reveal-code) :customization-color customization-color :on-enter-password on-enter-password