From 677e95031e179ccdd69162002ccbfb482f396e4e Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 13 Feb 2017 17:20:18 +0100 Subject: Clean up collapsible components --- .../features/compose/components/compose_form.jsx | 44 ++++++++++------------ 1 file changed, 19 insertions(+), 25 deletions(-) (limited to 'app/assets/javascripts/components/features') diff --git a/app/assets/javascripts/components/features/compose/components/compose_form.jsx b/app/assets/javascripts/components/features/compose/components/compose_form.jsx index 46b62964a..273ebd83f 100644 --- a/app/assets/javascripts/components/features/compose/components/compose_form.jsx +++ b/app/assets/javascripts/components/features/compose/components/compose_form.jsx @@ -10,7 +10,7 @@ import { debounce } from 'react-decoration'; import UploadButtonContainer from '../containers/upload_button_container'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Toggle from 'react-toggle'; -import { Motion, spring } from 'react-motion'; +import Collapsable from '../../../components/collapsable'; const messages = defineMessages({ placeholder: { id: 'compose_form.placeholder', defaultMessage: 'What is on your mind?' }, @@ -136,13 +136,11 @@ const ComposeForm = React.createClass({ return (
- - {({ opacity, height }) => -
- -
- } -
+ +
+ +
+
{replyArea} @@ -176,23 +174,19 @@ const ComposeForm = React.createClass({ - - {({ opacity, height }) => - - } - - - - {({ opacity, height }) => - - } - + + + + + 0} fullHeight={39.5}> + +
); } -- cgit