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
|
||||
(: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)])
|
||||
|
|
Loading…
Reference in New Issue