review changes
This commit is contained in:
parent
14685e11af
commit
3c3fc90b6a
3 changed files with 4 additions and 6 deletions
|
@ -19,6 +19,10 @@ type Props = {
|
|||
};
|
||||
|
||||
class ModalPublishSuccess extends React.PureComponent<Props> {
|
||||
componentDidMount() {
|
||||
const { clearPublish } = this.props;
|
||||
clearPublish();
|
||||
}
|
||||
render() {
|
||||
const { closeModal, clearPublish, navigate, uri, isEdit, filePath, lbryFirstError, claim } = this.props;
|
||||
// $FlowFixMe
|
||||
|
@ -43,8 +47,6 @@ class ModalPublishSuccess extends React.PureComponent<Props> {
|
|||
publishMessage = __('Your file is now pending on LBRY. It will take a few minutes to appear for other users.');
|
||||
}
|
||||
|
||||
clearPublish();
|
||||
|
||||
function handleClose() {
|
||||
closeModal();
|
||||
}
|
||||
|
|
|
@ -80,7 +80,6 @@ const ModalPublishPreview = (props: Props) => {
|
|||
previewResponse.outputs[0] && previewResponse.outputs[0].value && !previewResponse.outputs[0].value.source;
|
||||
// leave the confirm modal up if we're not going straight to upload/reflecting
|
||||
// @if TARGET='web'
|
||||
|
||||
React.useEffect(() => {
|
||||
if (publishing && !livestream) {
|
||||
closeModal();
|
||||
|
@ -88,9 +87,7 @@ const ModalPublishPreview = (props: Props) => {
|
|||
closeModal();
|
||||
}
|
||||
}, [publishSuccess, publishing, livestream]);
|
||||
|
||||
// @endif
|
||||
// const waitForSuccess = false;
|
||||
function onConfirmed() {
|
||||
// Publish for real:
|
||||
publish(getFilePathName(filePath), false);
|
||||
|
|
|
@ -25,7 +25,6 @@ export default function LivestreamPage(props: Props) {
|
|||
const STREAMING_POLL_INTERVAL_IN_MS = 10000;
|
||||
const LIVESTREAM_CLAIM_POLL_IN_MS = 60000;
|
||||
|
||||
// the component needs to check if the channel has published a new livestream, so we know if it should check
|
||||
React.useEffect(() => {
|
||||
let checkClaimsInterval;
|
||||
function checkHasLivestreamClaim() {
|
||||
|
|
Loading…
Reference in a new issue