Remove unused variables (#3906)
This commit is contained in:
committed by
Eugen Rochko
parent
6fbb3841a6
commit
eff9416469
@ -2,7 +2,6 @@ import React from 'react';
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
import PropTypes from 'prop-types';
|
||||
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
||||
import IconButton from '../../../components/icon_button';
|
||||
import Button from '../../../components/button';
|
||||
import StatusContent from '../../../components/status_content';
|
||||
import Avatar from '../../../components/avatar';
|
||||
@ -49,7 +48,7 @@ class BoostModal extends ImmutablePureComponent {
|
||||
}
|
||||
|
||||
render () {
|
||||
const { status, intl, onClose } = this.props;
|
||||
const { status, intl } = this.props;
|
||||
|
||||
return (
|
||||
<div className='modal-root__modal boost-modal'>
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
||||
import { injectIntl, FormattedMessage } from 'react-intl';
|
||||
import Button from '../../../components/button';
|
||||
|
||||
class ConfirmationModal extends React.PureComponent {
|
||||
|
@ -41,7 +41,7 @@ class ImageLoader extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const { alt, src, previewSrc, width, height } = this.props;
|
||||
const { loading, error } = this.state;
|
||||
const { loading } = this.state;
|
||||
|
||||
return (
|
||||
<div className='image-loader'>
|
||||
|
@ -1,5 +1,4 @@
|
||||
import React from 'react';
|
||||
import LoadingIndicator from '../../../components/loading_indicator';
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
import PropTypes from 'prop-types';
|
||||
import ExtendedVideoPlayer from '../../../components/extended_video_player';
|
||||
|
@ -72,7 +72,7 @@ PageTwo.propTypes = {
|
||||
me: ImmutablePropTypes.map.isRequired,
|
||||
};
|
||||
|
||||
const PageThree = ({ me, domain }) => (
|
||||
const PageThree = ({ me }) => (
|
||||
<div className='onboarding-modal__page onboarding-modal__page-three'>
|
||||
<div className='figure non-interactive'>
|
||||
<Search
|
||||
@ -95,7 +95,6 @@ const PageThree = ({ me, domain }) => (
|
||||
|
||||
PageThree.propTypes = {
|
||||
me: ImmutablePropTypes.map.isRequired,
|
||||
domain: PropTypes.string.isRequired,
|
||||
};
|
||||
|
||||
const PageFour = ({ domain, intl }) => (
|
||||
@ -187,7 +186,7 @@ class OnboardingModal extends React.PureComponent {
|
||||
this.pages = [
|
||||
<PageOne acct={me.get('acct')} domain={domain} />,
|
||||
<PageTwo me={me} />,
|
||||
<PageThree me={me} domain={domain} />,
|
||||
<PageThree me={me} />,
|
||||
<PageFour domain={domain} intl={intl} />,
|
||||
<PageSix admin={admin} domain={domain} />,
|
||||
];
|
||||
|
@ -1,5 +1,4 @@
|
||||
import React from 'react';
|
||||
import LoadingIndicator from '../../../components/loading_indicator';
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
import PropTypes from 'prop-types';
|
||||
import ExtendedVideoPlayer from '../../../components/extended_video_player';
|
||||
|
Reference in New Issue
Block a user