diff --git a/package.json b/package.json index 58db5f51b..e319e36bd 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "formik": "^0.10.4", "hast-util-sanitize": "^1.1.2", "keytar": "^4.2.1", - "lbry-redux": "lbryio/lbry-redux#7759bc6e8c482bed173d1f10aee6f6f9a439a15a", + "lbry-redux": "lbryio/lbry-redux#121ba56f47fff05531e27a7c99d7d417e79cd3ee", "localforage": "^1.7.1", "mixpanel-browser": "^2.17.1", "moment": "^2.22.0", diff --git a/src/renderer/component/publishForm/internal/bid-help-text.jsx b/src/renderer/component/publishForm/internal/bid-help-text.jsx index 9d42bfac5..9686020d1 100644 --- a/src/renderer/component/publishForm/internal/bid-help-text.jsx +++ b/src/renderer/component/publishForm/internal/bid-help-text.jsx @@ -1,32 +1,34 @@ // @flow import * as React from 'react'; import Button from 'component/button'; +import { buildURI } from 'lbry-redux'; +import type { Claim } from 'types/claim'; type Props = { uri: ?string, - editingURI: ?string, isResolvingUri: boolean, winningBidForClaimUri: ?number, - myClaimForUri: ?{}, - onEditMyClaim: any => void, + myClaimForUri: ?Claim, + isStillEditing: boolean, + onEditMyClaim: (any, string) => void, }; class BidHelpText extends React.PureComponent { render() { const { uri, - editingURI, isResolvingUri, winningBidForClaimUri, myClaimForUri, onEditMyClaim, + isStillEditing, } = this.props; if (!uri) { return __('Create a URL for this content'); } - if (uri === editingURI) { + if (isStillEditing) { return __('You are currently editing this claim'); } @@ -35,11 +37,20 @@ class BidHelpText extends React.PureComponent { } if (myClaimForUri) { + const editUri = buildURI({ + contentName: myClaimForUri.name, + claimId: myClaimForUri.claim_id, + }); + return ( {__('You already have a claim at')} {` ${uri} `} -