diff --git a/package.json b/package.json index 37f835547..fabc5e750 100644 --- a/package.json +++ b/package.json @@ -128,7 +128,7 @@ "husky": "^0.14.3", "json-loader": "^0.5.4", "lbry-format": "https://github.com/lbryio/lbry-format.git", - "lbry-redux": "lbryio/lbry-redux#2b3a5a59907f34d4e1c005c4696282b58d626242", + "lbry-redux": "lbryio/lbry-redux#6bd56492ad15a0e761b087db29a5441e9b9a04f0", "lbryinc": "lbryio/lbryinc#f8bba34b34599a8450ced842b29336d1117d050d", "lint-staged": "^7.0.2", "localforage": "^1.7.1", diff --git a/src/ui/component/channelEdit/index.js b/src/ui/component/channelEdit/index.js index 6f0617eea..d5dc8fc80 100644 --- a/src/ui/component/channelEdit/index.js +++ b/src/ui/component/channelEdit/index.js @@ -13,8 +13,8 @@ import ChannelPage from './view'; const select = (state, props) => ({ title: makeSelectTitleForUri(props.uri)(state), - thumbnail: makeSelectThumbnailForUri(props.uri)(state), - cover: makeSelectCoverForUri(props.uri)(state), + thumbnailUrl: makeSelectThumbnailForUri(props.uri)(state), + coverUrl: makeSelectCoverForUri(props.uri)(state), page: selectCurrentChannelPage(state), description: makeSelectMetadataItemForUri(props.uri, 'description')(state), website: makeSelectMetadataItemForUri(props.uri, 'website_url')(state), diff --git a/src/ui/component/channelEdit/view.jsx b/src/ui/component/channelEdit/view.jsx index 71603ff9e..725e2389d 100644 --- a/src/ui/component/channelEdit/view.jsx +++ b/src/ui/component/channelEdit/view.jsx @@ -9,8 +9,8 @@ type Props = { claim: ChannelClaim, title: ?string, amount: string, - cover: ?string, - thumbnail: ?string, + coverUrl: ?string, + thumbnailUrl: ?string, location: { search: string }, description: string, website: string, @@ -29,11 +29,11 @@ function ChannelForm(props: Props) { const { claim, title, - cover, + coverUrl, description, website, email, - thumbnail, + thumbnailUrl, tags, locations, languages, @@ -47,21 +47,21 @@ function ChannelForm(props: Props) { // fill this in with sdk data const channelParams = { - website: website, - email: email, + website, + email, + coverUrl, + thumbnailUrl, + description, + title, + amount, + claim_id: claimId, languages: languages || [], - cover: cover, - description: description, locations: locations || [], - title: title, - thumbnail: thumbnail, tags: tags ? tags.map(tag => { return { name: tag }; }) : [], - claim_id: claimId, - amount: amount, }; const [params, setParams] = useState(channelParams); @@ -88,14 +88,14 @@ function ChannelForm(props: Props) { } }; - const handleThumbnailChange = (url: string) => { - setParams({ ...params, thumbnail: url }); - updateThumb(url); + const handleThumbnailChange = (thumbnailUrl: string) => { + setParams({ ...params, thumbnailUrl }); + updateThumb(thumbnailUrl); }; - const handleCoverChange = (url: string) => { - setParams({ ...params, cover: url }); - updateCover(url); + const handleCoverChange = (coverUrl: string) => { + setParams({ ...params, coverUrl }); + updateCover(coverUrl); }; // TODO clear and bail after submit return ( @@ -108,17 +108,22 @@ function ChannelForm(props: Props) { )}
- diff --git a/src/ui/component/selectChannel/view.jsx b/src/ui/component/selectChannel/view.jsx index 5d9eb6ae8..dec2e2491 100644 --- a/src/ui/component/selectChannel/view.jsx +++ b/src/ui/component/selectChannel/view.jsx @@ -47,7 +47,7 @@ class ChannelSection extends React.PureComponent