From 4dc834b07935fa3980121dcfe5a2c3c9ff98174b Mon Sep 17 00:00:00 2001 From: Ibrahem Khalil Date: Sat, 7 Oct 2023 11:12:10 +0300 Subject: [PATCH] Faded first line of composer (#17489) --- src/status_im2/contexts/chat/composer/handlers.cljs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/status_im2/contexts/chat/composer/handlers.cljs b/src/status_im2/contexts/chat/composer/handlers.cljs index 4053513cd7..ac49ed179c 100644 --- a/src/status_im2/contexts/chat/composer/handlers.cljs +++ b/src/status_im2/contexts/chat/composer/handlers.cljs @@ -15,8 +15,8 @@ (defn focus [{:keys [input-ref] :as props} - {:keys [text-value focused? lock-selection? saved-cursor-position gradient-z-index]} - {:keys [height saved-height last-height opacity background-y gradient-opacity container-opacity] + {:keys [text-value focused? lock-selection? saved-cursor-position]} + {:keys [height saved-height last-height opacity background-y container-opacity] :as animations} {:keys [max-height] :as dimensions}] (reset! focused? true) @@ -27,9 +27,6 @@ (when (> (reanimated/get-shared-value last-height) (* constants/background-threshold max-height)) (reanimated/animate opacity 1) (reanimated/set-shared-value background-y 0)) - (when (= @gradient-z-index -1) - (reanimated/animate gradient-opacity 1) - (reset! gradient-z-index 1)) (js/setTimeout #(reset! lock-selection? false) 300) (when (and (not-empty @text-value) @input-ref) (.setNativeProps ^js @input-ref