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 (ns status-im.ui.screens.chat.bottom-info
(:require [reagent.core :as reagent] (:require [status-im.ui.components.react :as react]
[status-im.ui.components.animation :as anim]
[status-im.ui.components.react :as react]
[status-im.ui.screens.chat.styles.main :as styles])) [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 (defn overlay
[{:keys [on-click-outside]} items] [{:keys [on-click-outside]} items]
[react/view styles/bottom-info-overlay [react/view styles/bottom-info-overlay
@ -21,16 +11,6 @@
items]) items])
(defn container (defn container
[height & _] [height & children]
(let [anim-value (anim/create-value 1) [react/view {:style (styles/bottom-info-container height)}
context {:to-value height (into [react/view] children)])
: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)])})))