From 9366d09f836692c9b797269b949b48307202a76f Mon Sep 17 00:00:00 2001 From: Travis Eden Date: Mon, 2 Apr 2018 13:46:24 -0400 Subject: [PATCH] uppercase constants --- .../component/selectThumbnail/view.jsx | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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')}