From c6b5fed1313cd820d7c0a1e70dc36248c2b759b7 Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Sun, 11 Feb 2024 18:04:29 +0530 Subject: [PATCH] test --- .../contexts/chat/messenger/composer/view.cljs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/status_im/contexts/chat/messenger/composer/view.cljs b/src/status_im/contexts/chat/messenger/composer/view.cljs index b97660c54b65..9b2c70740db7 100644 --- a/src/status_im/contexts/chat/messenger/composer/view.cljs +++ b/src/status_im/contexts/chat/messenger/composer/view.cljs @@ -32,12 +32,12 @@ [{:keys [insets chat-list-scroll-y chat-screen-layout-calculations-complete? - window-height theme]} shared-values] (let [subscriptions (utils/init-subs) props (utils/init-non-reactive-state) state (utils/init-reactive-state) + window-height (:height (rn/get-window)) content-height (reagent/atom (or (:input-content-height ; Actual text height subscriptions) constants/input-height)) @@ -137,16 +137,12 @@ (defn f-composer [props] - (let [window-height (:height (rn/get-window)) - theme (quo.theme/use-theme-value) + (let [theme (quo.theme/use-theme-value) composer-default-height (+ constants/composer-default-height (:bottom (:insets props))) - shared-values (utils/shared-values composer-default-height) - extra-params (assoc props - :window-height window-height - :theme theme)] + shared-values (utils/shared-values composer-default-height)] [:<> [reanimated/view {:style (style/background-overlay shared-values)}] - [:f> sheet-component extra-params shared-values] + [:f> sheet-component props shared-values theme] [reanimated/view {:style (style/blur-container composer-default-height shared-values)} [blur/view (style/blur-view theme)]]]))