Reduce unused var warnings. Remove unnecessary redux injections (#2064)

This commit is contained in:
Anna Melzer 2018-10-28 19:33:31 +01:00 committed by Sean Yesmunt
parent 389053218e
commit 1359e7873b
15 changed files with 29 additions and 42 deletions

View file

@ -1,8 +1,3 @@
import React from 'react';
import { connect } from 'react-redux';
import CardMedia from './view';
const select = state => ({});
const perform = dispatch => ({});
export default connect(select, perform)(CardMedia);
export default CardMedia;

View file

@ -8,9 +8,4 @@ const select = (state, props) => ({
isSearching: selectIsSearching(state),
});
const perform = () => ({});
export default connect(
select,
perform
)(FileListSearch);
export default connect(select)(FileListSearch);

View file

@ -1,5 +1,3 @@
import React from 'react';
import { connect } from 'react-redux';
import FormFieldPrice from './view';
export default connect(null, null)(FormFieldPrice);
export default FormFieldPrice;

View file

@ -1,5 +1,3 @@
import { connect } from 'react-redux';
import { selectBalance } from 'lbry-redux';
import PublishForm from './view';
export default connect(null, null)(PublishForm);
export default PublishForm;

View file

@ -1,10 +1,9 @@
import React from 'react';
import { connect } from 'react-redux';
import { selectThemePath } from 'redux/selectors/settings.js';
import { selectThemePath } from 'redux/selectors/settings';
import Theme from './view';
const select = state => ({
themePath: selectThemePath(state),
});
export default connect(select, null)(Theme);
export default connect(select)(Theme);

View file

@ -2,10 +2,13 @@ import { connect } from 'react-redux';
import { doHideNotification } from 'lbry-redux';
import ModalAuthFailure from './view';
const select = state => ({});
const select = () => ({});
const perform = dispatch => ({
close: () => dispatch(doHideNotification()),
});
export default connect(null, null)(ModalAuthFailure);
export default connect(
select,
perform
)(ModalAuthFailure);

View file

@ -1,4 +1,3 @@
import React from 'react';
import { connect } from 'react-redux';
import { doAutoUpdateDeclined } from 'redux/actions/app';
import { doHideNotification } from 'lbry-redux';
@ -9,4 +8,7 @@ const perform = dispatch => ({
declineAutoUpdate: () => dispatch(doAutoUpdateDeclined()),
});
export default connect(null, perform)(ModalAutoUpdateConfirm);
export default connect(
null,
perform
)(ModalAutoUpdateConfirm);

View file

@ -1,4 +1,3 @@
import React from 'react';
import { connect } from 'react-redux';
import { doAutoUpdateDeclined } from 'redux/actions/app';
import { doHideNotification } from 'lbry-redux';
@ -9,4 +8,7 @@ const perform = dispatch => ({
declineAutoUpdate: () => dispatch(doAutoUpdateDeclined()),
});
export default connect(null, perform)(ModalAutoUpdateDownloaded);
export default connect(
null,
perform
)(ModalAutoUpdateDownloaded);

View file

@ -1,4 +1,3 @@
import React from 'react';
import { connect } from 'react-redux';
import { doStartUpgrade, doCancelUpgrade } from 'redux/actions/app';
import { doHideNotification } from 'lbry-redux';

View file

@ -2,10 +2,13 @@ import { connect } from 'react-redux';
import { doHideNotification } from 'lbry-redux';
import ModalTransactionFailed from './view';
const select = state => ({});
const select = () => ({});
const perform = dispatch => ({
closeModal: () => dispatch(doHideNotification()),
});
export default connect(select, perform)(ModalTransactionFailed);
export default connect(
select,
perform
)(ModalTransactionFailed);

View file

@ -1,4 +1,3 @@
import React from 'react';
import { connect } from 'react-redux';
import { selectDaemonSettings } from 'redux/selectors/settings';
import BackupPage from './view';
@ -7,4 +6,4 @@ const select = state => ({
daemonSettings: selectDaemonSettings(state),
});
export default connect(select, null)(BackupPage);
export default connect(select)(BackupPage);

View file

@ -1,5 +1,3 @@
import React from 'react';
import { connect } from 'react-redux';
import GetCreditsPage from './view';
export default connect(null, null)(GetCreditsPage);
export default GetCreditsPage;

View file

@ -1,5 +1,3 @@
import React from 'react';
import { connect } from 'react-redux';
import SendReceivePage from './view';
export default connect(null, null)(SendReceivePage);
export default SendReceivePage;

View file

@ -3,7 +3,7 @@ import WalletSend from 'component/walletSend';
import WalletAddress from 'component/walletAddress';
import Page from 'component/page';
const SendReceivePage = props => (
const SendReceivePage = () => (
<Page>
<WalletSend />
<WalletAddress />

View file

@ -1,5 +1,3 @@
import React from 'react';
import { connect } from 'react-redux';
import WalletPage from './view';
export default connect(null, null)(WalletPage);
export default WalletPage;