Reduce unused var warnings. Remove unnecessary redux injections (#2064)
This commit is contained in:
parent
389053218e
commit
1359e7873b
15 changed files with 29 additions and 42 deletions
|
@ -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;
|
||||
|
|
|
@ -8,9 +8,4 @@ const select = (state, props) => ({
|
|||
isSearching: selectIsSearching(state),
|
||||
});
|
||||
|
||||
const perform = () => ({});
|
||||
|
||||
export default connect(
|
||||
select,
|
||||
perform
|
||||
)(FileListSearch);
|
||||
export default connect(select)(FileListSearch);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue