diff options
author | Sorin Davidoi <sorin.davidoi@gmail.com> | 2017-05-20 14:58:13 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-20 14:58:13 +0200 |
commit | 2c405aed553067bfba2daf1b235a27f7ba52c956 (patch) | |
tree | 1f541b16216471732b28715ada3995489665c6e2 /app/javascript/mastodon/components/icon_button.js | |
parent | da0a18a318c9810fed95785c42460950b9d71183 (diff) |
Performance improvements (#3168)
* refactor(components/status_list): Avoid quering scrollTop if not necessary * refactor(components/dropdown_menu): Do not render items if not expanded * refactor: Cherry-pick react-motion imports * refactor(compose/privacy_dropdown): Do not render options if not open * refactor(components/column_collapsable): Do not render children if collapsed
Diffstat (limited to 'app/javascript/mastodon/components/icon_button.js')
-rw-r--r-- | app/javascript/mastodon/components/icon_button.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/icon_button.js b/app/javascript/mastodon/components/icon_button.js index c2fbbd4b9..3ae22faef 100644 --- a/app/javascript/mastodon/components/icon_button.js +++ b/app/javascript/mastodon/components/icon_button.js @@ -1,5 +1,6 @@ import React from 'react'; -import { Motion, spring } from 'react-motion'; +import Motion from 'react-motion/lib/Motion'; +import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; class IconButton extends React.PureComponent { |