// @flow import * as PAGES from 'constants/pages'; import React from 'react'; import { Modal } from 'modal/modal'; import ClaimPreview from 'component/claimPreview'; import Button from 'component/button'; import Card from 'component/common/card'; type Props = { closeModal: () => void, clearPublish: () => void, navigate: (string) => void, uri: string, isEdit: boolean, filePath: ?string, }; class ModalPublishSuccess extends React.PureComponent { componentDidMount() { const { clearPublish } = this.props; clearPublish(); } render() { const { closeModal, clearPublish, navigate, uri, isEdit, filePath } = this.props; // $FlowFixMe let contentLabel; if (isEdit) { contentLabel = __('Update published'); } else { contentLabel = __('File published'); } let publishMessage; if (isEdit) { publishMessage = __('Your update is now pending. It will take a few minutes to appear for other users.'); } else { publishMessage = __('Your content will be live shortly.'); } function handleClose() { closeModal(); } return (
{filePath && (

{__( `Upload will continue in the background, please do not shut down immediately. Leaving the app running helps the network, thank you!` )}{' '}