lbry-desktop/src/ui/component/channelEdit/index.js
Thomas Zarebczan 90c219ff38 fix: more bugs
We should still allow file removal if someone doesn't want to delete the file from their PC, but delete it from My Library
No need to show connecting/status while claim is resolving
Fix channel edit bug on vanity url
2019-08-15 07:36:03 -04:00

36 lines
1.2 KiB
JavaScript

import { connect } from 'react-redux';
import {
makeSelectTitleForUri,
makeSelectThumbnailForUri,
makeSelectCoverForUri,
selectCurrentChannelPage,
makeSelectMetadataItemForUri,
doUpdateChannel,
makeSelectAmountForUri,
makeSelectClaimForUri,
} from 'lbry-redux';
import ChannelPage from './view';
const select = (state, props) => ({
title: makeSelectTitleForUri(props.uri)(state),
thumbnail: makeSelectThumbnailForUri(props.uri)(state),
cover: makeSelectCoverForUri(props.uri)(state),
page: selectCurrentChannelPage(state),
description: makeSelectMetadataItemForUri(props.uri, 'description')(state),
website: makeSelectMetadataItemForUri(props.uri, 'website_url')(state),
email: makeSelectMetadataItemForUri(props.uri, 'email')(state),
tags: makeSelectMetadataItemForUri(props.uri, 'tags')(state),
locations: makeSelectMetadataItemForUri(props.uri, 'locations')(state),
languages: makeSelectMetadataItemForUri(props.uri, 'languages')(state),
amount: makeSelectAmountForUri(props.uri)(state),
claim: makeSelectClaimForUri(props.uri)(state),
});
const perform = dispatch => ({
updateChannel: params => dispatch(doUpdateChannel(params)),
});
export default connect(
select,
perform
)(ChannelPage);