diff --git a/app/components/Citation.jsx b/app/components/Citation.jsx index 853c468a9fb43bae09dbba7a3ee0f702bb28cc67..61607bdd8c8cf2720e41f5a6e20faf8228fda466 100755 --- a/app/components/Citation.jsx +++ b/app/components/Citation.jsx @@ -21,10 +21,9 @@ const Citation = props => { } /> </span> - {articleId && - articleId.length > 0 && ( - <span>, PMID: {articleId.find(id => id.type === 'pmid').id}</span> - )} + {articleId && articleId.length > 0 && ( + <span>, PMID: {articleId.find(id => id.type === 'pmid').id}</span> + )} </Small> </p> ) diff --git a/app/components/FileTable.jsx b/app/components/FileTable.jsx index d9e5cb06eea8c65f4b48a391e5f6e8042fb78442..14093255ca1af57f0f9d260c20f5ac0b7dd333c0 100755 --- a/app/components/FileTable.jsx +++ b/app/components/FileTable.jsx @@ -42,25 +42,24 @@ const FileTable = ({ files }) => ( <th>Filename</th> <th>Label</th> </tr> - {files.map( - file => - file.type === 'manuscript' ? ( - <tr key="manuscript"> - <td>manuscript</td> - <td> - <FilePreview file={file} /> - </td> - <td /> - </tr> - ) : ( - <tr key={file.url}> - <td>{file.type}</td> - <td> - <FilePreview file={file} /> - </td> - <td>{file.label}</td> - </tr> - ), + {files.map(file => + file.type === 'manuscript' ? ( + <tr key="manuscript"> + <td>manuscript</td> + <td> + <FilePreview file={file} /> + </td> + <td /> + </tr> + ) : ( + <tr key={file.url}> + <td>{file.type}</td> + <td> + <FilePreview file={file} /> + </td> + <td>{file.label}</td> + </tr> + ), )} </tbody> </Table> diff --git a/app/components/PubMedSearch.jsx b/app/components/PubMedSearch.jsx index fe0dc9b2d5a46c02bbf8f081b80d78440fcdf6af..41a3f46216869a61e7409a61d39215875f739ae3 100755 --- a/app/components/PubMedSearch.jsx +++ b/app/components/PubMedSearch.jsx @@ -288,20 +288,18 @@ class PubMedSearch extends React.Component { <LoadingIcon /> </Loading> )} - {results.length < hitcount && - !loading && ( - <LoadMore onClick={this.onLoad} secondary> - Load More Results - </LoadMore> - )} + {results.length < hitcount && !loading && ( + <LoadMore onClick={this.onLoad} secondary> + Load More Results + </LoadMore> + )} </Results> )} - {results.length === 0 && - loading && ( - <Loading> - <LoadingIcon /> - </Loading> - )} + {results.length === 0 && loading && ( + <Loading> + <LoadingIcon /> + </Loading> + )} </div> )} </SearchArea> diff --git a/app/components/UploadFiles.jsx b/app/components/UploadFiles.jsx index 08ad4f79257858b6e99312a7ad0a7518371dc46b..6c43a056a10d432da8890fddeac98a1d6f1f5a5d 100755 --- a/app/components/UploadFiles.jsx +++ b/app/components/UploadFiles.jsx @@ -78,24 +78,23 @@ const UploadFiles = props => { {files.length > 0 ? ( <div> <FileList> - {files.map( - file => - file.type === 'manuscript' ? ( - <UploadFileListItem - file={file} - fileData={addManuscript} - key="manuscript" - status={status} - /> - ) : ( - <UploadFileListItem - checked={checked} - file={file} - fileData={updateFile} - key={file.url} - types={types} - /> - ), + {files.map(file => + file.type === 'manuscript' ? ( + <UploadFileListItem + file={file} + fileData={addManuscript} + key="manuscript" + status={status} + /> + ) : ( + <UploadFileListItem + checked={checked} + file={file} + fileData={updateFile} + key={file.url} + types={types} + /> + ), )} </FileList> <DropMore diff --git a/app/components/XMLReview.jsx b/app/components/XMLReview.jsx index 9ad6f30cca6a5ea852f8021b1a44ae958627aef1..5858436480171bf3ac1b61164dd2166021281f55 100755 --- a/app/components/XMLReview.jsx +++ b/app/components/XMLReview.jsx @@ -405,28 +405,25 @@ class EPMCTagged extends React.Component { </Content> </Section> )} - {pane === 'pdf' && - pdf && ( - <AnnotatePDF - reload={this.listAnnotations()} - toMark={`${currentVersion.id}-pdf`} - url={pdf.url} - user={currentUser.id} - /> - )} - {pane === 'web' && - html && ( - <AnnotateHTML - html={html} - reload={this.listAnnotations()} - toMark={`${currentVersion.id}-web`} - user={currentUser.id} - /> - )} - {pane === 'original' && - manuscript && ( - <ManuscriptPreview file={manuscript} source={source} /> - )} + {pane === 'pdf' && pdf && ( + <AnnotatePDF + reload={this.listAnnotations()} + toMark={`${currentVersion.id}-pdf`} + url={pdf.url} + user={currentUser.id} + /> + )} + {pane === 'web' && html && ( + <AnnotateHTML + html={html} + reload={this.listAnnotations()} + toMark={`${currentVersion.id}-web`} + user={currentUser.id} + /> + )} + {pane === 'original' && manuscript && ( + <ManuscriptPreview file={manuscript} source={source} /> + )} </PanelContent> </PreviewPanel> <EditPanel style={{ minWidth: showManuscript ? 0 : 'auto' }}> diff --git a/app/components/ui/atoms/Select.jsx b/app/components/ui/atoms/Select.jsx index 22f0ca1dc13e20e5501db0d6414e4c1f7ad786d2..a5950a42c8c42236ab144f854cabf546b9af2288 100755 --- a/app/components/ui/atoms/Select.jsx +++ b/app/components/ui/atoms/Select.jsx @@ -93,17 +93,16 @@ class Select extends React.Component { {label && <Label htmlFor={this.inputId}>{label}</Label>} <Dropdown> <DropdownText id={this.inputId} value={value} {...props}> - {options.map( - opt => - typeof opt === 'object' ? ( - <option key={opt.value} value={opt.value}> - {opt.label} - </option> - ) : ( - <option key={opt} value={opt}> - {opt} - </option> - ), + {options.map(opt => + typeof opt === 'object' ? ( + <option key={opt.value} value={opt.value}> + {opt.label} + </option> + ) : ( + <option key={opt} value={opt}> + {opt} + </option> + ), )} </DropdownText> <DropIcon icon={icon} />