diff --git a/js/components/ascribe_accordion_list/accordion_list_item_piece.js b/js/components/ascribe_accordion_list/accordion_list_item_piece.js index 9f876388..16355a17 100644 --- a/js/components/ascribe_accordion_list/accordion_list_item_piece.js +++ b/js/components/ascribe_accordion_list/accordion_list_item_piece.js @@ -45,15 +45,14 @@ let AccordionListItemPiece = React.createClass({ }, render() { - const { - artistName, - badge, - buttons, - children, - className, - piece, - subsubheading, - thumbnailPlaceholder: ThumbnailPlaceholder } = this.props; + const { artistName, + badge, + buttons, + children, + className, + piece, + subsubheading, + thumbnailPlaceholder: ThumbnailPlaceholder } = this.props; const { url: thumbnailUrl, url_safe: thumbnailSafeUrl } = piece.thumbnail; // Display the 300x300 thumbnail if we have it, otherwise just use the safe url diff --git a/js/components/ascribe_buttons/acls/acl_button.js b/js/components/ascribe_buttons/acls/acl_button.js index 97f2e173..1c2a2e81 100644 --- a/js/components/ascribe_buttons/acls/acl_button.js +++ b/js/components/ascribe_buttons/acls/acl_button.js @@ -44,13 +44,12 @@ export default function ({ action, displayName, title, tooltip }) { }, render() { - const { - availableAcls, - buttonAcceptClassName, - currentUser, - email, - pieceOrEditions, - handleSuccess } = this.props; + const { availableAcls, + buttonAcceptClassName, + currentUser, + email, + pieceOrEditions, + handleSuccess } = this.props; return ( diff --git a/js/components/ascribe_detail/edition.js b/js/components/ascribe_detail/edition.js index 803d73bb..91fb1396 100644 --- a/js/components/ascribe_detail/edition.js +++ b/js/components/ascribe_detail/edition.js @@ -51,13 +51,12 @@ let Edition = React.createClass({ }, render() { - const { - actionPanelButtonListType, - coaError, - currentUser, - edition, - furtherDetailsType: FurtherDetailsType, - loadEdition } = this.props; + const { actionPanelButtonListType, + coaError, + currentUser, + edition, + furtherDetailsType: FurtherDetailsType, + loadEdition } = this.props; return ( diff --git a/js/components/ascribe_detail/edition_action_panel.js b/js/components/ascribe_detail/edition_action_panel.js index 71bf38fe..20f19204 100644 --- a/js/components/ascribe_detail/edition_action_panel.js +++ b/js/components/ascribe_detail/edition_action_panel.js @@ -95,10 +95,9 @@ let EditionActionPanel = React.createClass({ }, render() { - const { - actionPanelButtonListType: ActionPanelButtonListType, - edition, - currentUser } = this.props; + const { actionPanelButtonListType: ActionPanelButtonListType, + currentUser, + edition } = this.props; if (edition && edition.notifications && diff --git a/js/components/ascribe_forms/acl_form_factory.js b/js/components/ascribe_forms/acl_form_factory.js index 9422a351..31f0a0eb 100644 --- a/js/components/ascribe_forms/acl_form_factory.js +++ b/js/components/ascribe_forms/acl_form_factory.js @@ -53,16 +53,15 @@ let AclFormFactory = React.createClass({ }, render() { - const { - action, - autoFocusProperty, - pieceOrEditions, - currentUser, - email, - message, - labels, - handleSuccess, - showNotification } = this.props; + const { action, + autoFocusProperty, + pieceOrEditions, + currentUser, + email, + message, + labels, + handleSuccess, + showNotification } = this.props; const formMessage = message || getAclFormMessage({ aclName: action, diff --git a/js/components/ascribe_forms/form_consign.js b/js/components/ascribe_forms/form_consign.js index a28d2cff..dbf5ce54 100644 --- a/js/components/ascribe_forms/form_consign.js +++ b/js/components/ascribe_forms/form_consign.js @@ -62,15 +62,14 @@ let ConsignForm = React.createClass({ render() { const { email } = this.state; - const { - autoFocusProperty, - createPublicContractAgreement, - email: defaultEmail, - handleSuccess, - id, - message, - labels, - url } = this.props; + const { autoFocusProperty, + createPublicContractAgreement, + email: defaultEmail, + handleSuccess, + id, + message, + labels, + url } = this.props; return (
); } else { - const { - name, - disabled, - style } = this.props; + const { disabled, name, style } = this.props; return ( file.status !== 'deleted' && file.status !== 'canceled' && file.size !== -1).length > 0; diff --git a/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_dialog.js b/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_dialog.js index db28846b..93758b86 100644 --- a/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_dialog.js +++ b/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_dialog.js @@ -35,13 +35,12 @@ let FileDragAndDropDialog = React.createClass({ }, render() { - const { - hasFiles, - multipleFiles, - enableLocalHashing, - uploadMethod, - fileClassToUpload, - onClick } = this.props; + const { enableLocalHashing, + fileClassToUpload, + hasFiles, + multipleFiles, + onClick, + uploadMethod } = this.props; if (hasFiles) { return null; diff --git a/js/components/ascribe_uploader/ascribe_upload_button/upload_button.js b/js/components/ascribe_uploader/ascribe_upload_button/upload_button.js index 6612f968..f0ebc858 100644 --- a/js/components/ascribe_uploader/ascribe_upload_button/upload_button.js +++ b/js/components/ascribe_uploader/ascribe_upload_button/upload_button.js @@ -145,9 +145,7 @@ export default function UploadButton({ className = 'btn btn-default btn-sm' } = }, render() { - const { - multiple, - allowedExtensions } = this.props; + const { allowedExtensions, multiple } = this.props; const { disabled } = this.state; diff --git a/js/components/global_notification.js b/js/components/global_notification.js index c1477f67..abef1a33 100644 --- a/js/components/global_notification.js +++ b/js/components/global_notification.js @@ -53,11 +53,10 @@ let GlobalNotification = React.createClass({ }, renderNotification() { - const { - notificationQueue: [notification], - notificationStatus, - notificationsPaused, - containerWidth } = this.state; + const { containerWidth, + notificationsPaused, + notificationQueue: [notification], + notificationStatus } = this.state; const notificationClasses = []; diff --git a/js/components/piece_list.js b/js/components/piece_list.js index 666d1b54..45ee2600 100644 --- a/js/components/piece_list.js +++ b/js/components/piece_list.js @@ -259,13 +259,12 @@ let PieceList = React.createClass({ }, render() { - const { - accordionListItemType: AccordionListItemType, - bulkModalButtonListType: BulkModalButtonListType, - customSubmitButton, - customThumbnailPlaceholder, - filterParams, - orderParams } = this.props; + const { accordionListItemType: AccordionListItemType, + bulkModalButtonListType: BulkModalButtonListType, + customSubmitButton, + customThumbnailPlaceholder, + filterParams, + orderParams } = this.props; const loadingElement = ; diff --git a/js/components/whitelabel/wallet/components/ascribe_detail/wallet_piece_container.js b/js/components/whitelabel/wallet/components/ascribe_detail/wallet_piece_container.js index ed8da83b..b41cb873 100644 --- a/js/components/whitelabel/wallet/components/ascribe_detail/wallet_piece_container.js +++ b/js/components/whitelabel/wallet/components/ascribe_detail/wallet_piece_container.js @@ -33,13 +33,12 @@ let WalletPieceContainer = React.createClass({ }, render() { - const { - children, - currentUser, - handleDeleteSuccess, - loadPiece, - piece, - submitButtonType } = this.props; + const { children, + currentUser, + handleDeleteSuccess, + loadPiece, + piece, + submitButtonType } = this.props; if (piece && piece.id) { return ( diff --git a/js/components/whitelabel/wallet/components/market/market_buttons/market_submit_button.js b/js/components/whitelabel/wallet/components/market/market_buttons/market_submit_button.js index c839dea0..de18576d 100644 --- a/js/components/whitelabel/wallet/components/market/market_buttons/market_submit_button.js +++ b/js/components/whitelabel/wallet/components/market/market_buttons/market_submit_button.js @@ -53,14 +53,13 @@ let MarketSubmitButton = React.createClass({ canEditionBeSubmitted(edition) { if (edition && edition.extra_data && edition.other_data) { - const { - extra_data: { - artist_bio: artistBio, - display_instructions: displayInstructions, - technology_details: technologyDetails, - work_description: workDescription - }, - other_data: otherData } = edition; + const { extra_data: { + artist_bio: artistBio, + display_instructions: displayInstructions, + technology_details: technologyDetails, + work_description: workDescription + }, + other_data: otherData } = edition; return artistBio && displayInstructions && technologyDetails && workDescription && otherData.length; } diff --git a/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js b/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js index 596ceab6..dc7c46eb 100644 --- a/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js +++ b/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js @@ -107,16 +107,15 @@ let MarketAdditionalDataForm = React.createClass({ }, render() { - const { - editable, - extraData = {}, - isInline, - handleSuccess, - otherData, - pieceId, - showHeading, - showNotification, - submitLabel } = this.props; + const { editable, + extraData = {}, + isInline, + handleSuccess, + otherData, + pieceId, + showHeading, + showNotification, + submitLabel } = this.props; let buttons; let heading; diff --git a/js/components/whitelabel/wallet/components/market/market_piece_list.js b/js/components/whitelabel/wallet/components/market/market_piece_list.js index 1c74e6de..403c6009 100644 --- a/js/components/whitelabel/wallet/components/market/market_piece_list.js +++ b/js/components/whitelabel/wallet/components/market/market_piece_list.js @@ -51,12 +51,11 @@ let MarketPieceList = React.createClass({ render() { const { customThumbnailPlaceholder, location } = this.props; - const { - currentUser: { email: userEmail }, - whitelabel: { - name: whitelabelName = 'Market', - user: whitelabelAdminEmail - } } = this.state; + const { currentUser: { email: userEmail }, + whitelabel: { + name: whitelabelName = 'Market', + user: whitelabelAdminEmail + } } = this.state; let filterParams = null; let canLoadPieceList = false; diff --git a/js/components/whitelabel/wallet/components/market/market_register_piece.js b/js/components/whitelabel/wallet/components/market/market_register_piece.js index 53c1a59d..aa71c207 100644 --- a/js/components/whitelabel/wallet/components/market/market_register_piece.js +++ b/js/components/whitelabel/wallet/components/market/market_register_piece.js @@ -112,12 +112,11 @@ let MarketRegisterPiece = React.createClass({ render() { const { location } = this.props; - const { - piece, - step, - whitelabel: { - name: whitelabelName = 'Market' - } } = this.state; + const { piece, + step, + whitelabel: { + name: whitelabelName = 'Market' + } } = this.state; setDocumentTitle(getLangText('Register a new piece'));