diff options
author | Nolan Lawson <nolan@nolanlawson.com> | 2017-10-16 00:36:15 -0700 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-16 09:36:15 +0200 |
commit | fa0be3f834b54bb276eb5233195181fa3760710f (patch) | |
tree | c1367d2304a220262d440034e1927097ed1678da /app/javascript/mastodon/features/compose/components/upload.js | |
parent | 981e20b03a67ecc01826ef32c5fc9fd28ed2917b (diff) |
Add option to reduce motion (#5393)
* Add option to reduce motion * Use HOC to wrap all Motion calls * fix case-sensitive issue * Avoid updating too frequently * Get rid of unnecessary change to _simple_status.html.haml
Diffstat (limited to 'app/javascript/mastodon/features/compose/components/upload.js')
-rw-r--r-- | app/javascript/mastodon/features/compose/components/upload.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/compose/components/upload.js b/app/javascript/mastodon/features/compose/components/upload.js index cd9e08360..5d8d66cf7 100644 --- a/app/javascript/mastodon/features/compose/components/upload.js +++ b/app/javascript/mastodon/features/compose/components/upload.js @@ -2,7 +2,7 @@ import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from '../../../components/icon_button'; -import Motion from 'react-motion/lib/Motion'; +import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl } from 'react-intl'; |