Removes unused redux actions

This commit is contained in:
Oleg Silkin 2020-01-06 21:19:06 -05:00 committed by Sean Yesmunt
parent e8e3f50cfb
commit 6beaa13a2d

View file

@ -1,24 +1,16 @@
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import ChannelCreate from './view'; import ChannelCreate from './view';
import { import { selectBalance, doCreateChannel } from 'lbry-redux';
selectBalance,
selectMyChannelClaims,
selectFetchingMyChannels,
doFetchChannelListMine,
doCreateChannel,
} from 'lbry-redux';
import { selectUserVerifiedEmail } from 'lbryinc';
const select = state => ({ const select = state => ({
channels: selectMyChannelClaims(state),
fetchingChannels: selectFetchingMyChannels(state),
balance: selectBalance(state), balance: selectBalance(state),
emailVerified: selectUserVerifiedEmail(state),
}); });
const perform = dispatch => ({ const perform = dispatch => ({
createChannel: (name, amount) => dispatch(doCreateChannel(name, amount)), createChannel: (name, amount) => dispatch(doCreateChannel(name, amount)),
fetchChannelListMine: () => dispatch(doFetchChannelListMine()),
}); });
export default connect(select, perform)(ChannelCreate); export default connect(
select,
perform
)(ChannelCreate);