From 2af23bcb2ebb2bd99eb3232694db5e9ad736d143 Mon Sep 17 00:00:00 2001 From: andrey Date: Mon, 11 Jan 2021 13:45:08 +0100 Subject: [PATCH] intro wizard indicator fix Signed-off-by: andrey --- src/status_im/ui/screens/intro/carousel.cljs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/status_im/ui/screens/intro/carousel.cljs b/src/status_im/ui/screens/intro/carousel.cljs index b061cd55da..6292a04273 100644 --- a/src/status_im/ui/screens/intro/carousel.cljs +++ b/src/status_im/ui/screens/intro/carousel.cljs @@ -6,12 +6,16 @@ [status-im.i18n :as i18n] [status-im.ui.screens.intro.styles :as styles])) +(defn code [val] + ^{:key val} + [animated/code {:exec val}]) + (defn dot [] (let [active (animated/value 0) active-transition (animated/with-timing-transition active {:duration 100})] (fn [{:keys [selected progress]}] [animated/view {:style (styles/dot-style active-transition)} - [animated/code {:exec (animated/set active (if selected 1 0))}] + [code (animated/set active (if selected 1 0))] [animated/view {:style (styles/dot-progress active-transition progress)}]]))) (defn dots-selector [{:keys [n selected progress]}]