* add sign in area to drawer content * make sign in a menu item in the drawer content * fix typo
18 lines
455 B
JavaScript
18 lines
455 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doFetchChannelListMine, selectMyChannelClaims } from 'lbry-redux';
|
|
import { selectUser } from 'lbryinc';
|
|
import DrawerContent from './view';
|
|
|
|
const select = state => ({
|
|
channels: selectMyChannelClaims(state),
|
|
user: selectUser(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
fetchChannelListMine: () => dispatch(doFetchChannelListMine()),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(DrawerContent);
|