diff --git a/src/renderer/component/selectThumbnail/view.jsx b/src/renderer/component/selectThumbnail/view.jsx index c917dc3e3..27f3d9a83 100644 --- a/src/renderer/component/selectThumbnail/view.jsx +++ b/src/renderer/component/selectThumbnail/view.jsx @@ -1,6 +1,6 @@ // @flow -import * as modals from 'constants/modal_types'; -import * as statuses from 'constants/thumbnail_upload_statuses'; +import * as MODALS from 'constants/modal_types'; +import * as STATUSES from 'constants/thumbnail_upload_statuses'; import React from 'react'; import { FormField } from 'component/common/form'; import FileSelector from 'component/common/file-selector'; @@ -25,17 +25,17 @@ class SelectThumbnail extends React.PureComponent { return (
- {(status === statuses.READY || status === statuses.IN_PROGRESS) && ( + {(status === STATUSES.READY || status === STATUSES.IN_PROGRESS) && (
{__('Thumbnail')} openModal(modals.CONFIRM_THUMBNAIL_UPLOAD, { path })} + onFileChosen={path => openModal(MODALS.CONFIRM_THUMBNAIL_UPLOAD, { path })} />
)} - {(status === statuses.API_DOWN || status === statuses.MANUAL) && ( + {(status === STATUSES.API_DOWN || status === STATUSES.MANUAL) && ( { /> )} - {status === statuses.READY && ( + {status === STATUSES.READY && (

updatePublishForm({ uploadThumbnailStatus: statuses.MANUAL })} + onClick={() => updatePublishForm({ uploadThumbnailStatus: STATUSES.MANUAL })} > Enter URL Manually

)} - {status === statuses.MANUAL && ( + {status === STATUSES.MANUAL && (

updatePublishForm({ uploadThumbnailStatus: statuses.READY })} + onClick={() => updatePublishForm({ uploadThumbnailStatus: STATUSES.READY })} > Upload Thumbnail

)} - {status === statuses.IN_PROGRESS &&

uploading...

} + {status === STATUSES.IN_PROGRESS &&

uploading...

} - {status === statuses.COMPLETE && ( + {status === STATUSES.COMPLETE && (

{__('Thumbnail')}