bf5b2370e2
## Issue
5575: Show "URL already used" msg when publishing
Seems like `uri` just got accidentally removed from db87125d
28 lines
978 B
JavaScript
28 lines
978 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
makeSelectPublishFormValue,
|
|
selectIsStillEditing,
|
|
selectMyClaimForUri,
|
|
doUpdatePublishForm,
|
|
doPrepareEdit,
|
|
} from 'lbry-redux';
|
|
import { selectActiveChannelClaim, selectIncognito } from 'redux/selectors/app';
|
|
import { doSetActiveChannel } from 'redux/actions/app';
|
|
import PublishPage from './view';
|
|
|
|
const select = (state) => ({
|
|
name: makeSelectPublishFormValue('name')(state),
|
|
uri: makeSelectPublishFormValue('uri')(state),
|
|
isStillEditing: selectIsStillEditing(state),
|
|
myClaimForUri: selectMyClaimForUri(state),
|
|
activeChannelClaim: selectActiveChannelClaim(state),
|
|
incognito: selectIncognito(state),
|
|
});
|
|
|
|
const perform = (dispatch) => ({
|
|
updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)),
|
|
prepareEdit: (claim, uri) => dispatch(doPrepareEdit(claim, uri)),
|
|
setActiveChannel: (claimId) => dispatch(doSetActiveChannel(claimId)),
|
|
});
|
|
|
|
export default connect(select, perform)(PublishPage);
|