Browse Source

Import only Spring/Motion from react-motion (#5236)

master
Nolan Lawson 7 years ago
committed by Eugen Rochko
parent
commit
97b3d0cd56
4 changed files with 8 additions and 4 deletions
  1. +2
    -1
      app/javascript/mastodon/components/dropdown_menu.js
  2. +2
    -1
      app/javascript/mastodon/features/compose/components/privacy_dropdown.js
  3. +2
    -1
      app/javascript/mastodon/features/compose/components/search.js
  4. +2
    -1
      app/javascript/mastodon/features/compose/components/warning.js

+ 2
- 1
app/javascript/mastodon/components/dropdown_menu.js View File

@ -3,7 +3,8 @@ import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from './icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import { Motion, spring } from 'react-motion';
import Motion from 'react-motion/lib/Motion';
import spring from 'react-motion/lib/spring';
import detectPassiveEvents from 'detect-passive-events';
const listenerOptions = detectPassiveEvents.hasSupport ? { passive: true } : false;

+ 2
- 1
app/javascript/mastodon/features/compose/components/privacy_dropdown.js View File

@ -3,7 +3,8 @@ import PropTypes from 'prop-types';
import { injectIntl, defineMessages } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import { Motion, spring } from 'react-motion';
import Motion from 'react-motion/lib/Motion';
import spring from 'react-motion/lib/spring';
import detectPassiveEvents from 'detect-passive-events';
import classNames from 'classnames';

+ 2
- 1
app/javascript/mastodon/features/compose/components/search.js View File

@ -2,7 +2,8 @@ import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import { Motion, spring } from 'react-motion';
import Motion from 'react-motion/lib/Motion';
import spring from 'react-motion/lib/spring';
const messages = defineMessages({
placeholder: { id: 'search.placeholder', defaultMessage: 'Search' },

+ 2
- 1
app/javascript/mastodon/features/compose/components/warning.js View File

@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Motion, spring } from 'react-motion';
import Motion from 'react-motion/lib/Motion';
import spring from 'react-motion/lib/spring';
export default class Warning extends React.PureComponent {

Loading…
Cancel
Save