remove message options animation (dead code)

This commit is contained in:
Roman Volosovskyi 2019-06-24 08:40:55 +03:00
parent 4f6086ed1d
commit cd97557591
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 4 additions and 24 deletions

View File

@ -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)])