From cd975575916b34611230ea6e399567f417f20501 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Mon, 24 Jun 2019 08:40:55 +0300 Subject: [PATCH] remove message options animation (dead code) --- .../ui/screens/chat/bottom_info.cljs | 28 +++---------------- 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/src/status_im/ui/screens/chat/bottom_info.cljs b/src/status_im/ui/screens/chat/bottom_info.cljs index d36c5cd786..abbad123ab 100644 --- a/src/status_im/ui/screens/chat/bottom_info.cljs +++ b/src/status_im/ui/screens/chat/bottom_info.cljs @@ -1,17 +1,7 @@ (ns status-im.ui.screens.chat.bottom-info - (:require [reagent.core :as reagent] - [status-im.ui.components.animation :as anim] - [status-im.ui.components.react :as react] + (:require [status-im.ui.components.react :as react] [status-im.ui.screens.chat.styles.main :as styles])) -(defn- container-animation-logic - [{:keys [to-value val]}] - (fn [_] - (anim/start - (anim/spring val {:toValue to-value - :friction 6 - :tension 40})))) - (defn overlay [{:keys [on-click-outside]} items] [react/view styles/bottom-info-overlay @@ -21,16 +11,6 @@ items]) (defn container - [height & _] - (let [anim-value (anim/create-value 1) - context {:to-value height - :val anim-value} - on-update (container-animation-logic context)] - (reagent/create-class - {:component-did-update - on-update - :display-name "container" - :reagent-render - (fn [height & children] - [react/animated-view {:style (styles/bottom-info-container height)} - (into [react/view] children)])}))) + [height & children] + [react/view {:style (styles/bottom-info-container height)} + (into [react/view] children)])