remove message options animation (dead code)
This commit is contained in:
parent
4f6086ed1d
commit
cd97557591
|
@ -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)])})))
|
|
||||||
|
|
Loading…
Reference in New Issue