Skip to content
Snippets Groups Projects

Master

Merged Audrey Hamelers requested to merge master into dev_k8s
1 file
+ 12
3
Compare changes
  • Side-by-side
  • Inline
@@ -3,7 +3,7 @@ import { Wax } from 'wax-prose-mirror'
import styled from 'styled-components'
import { th } from '@pubsweet/ui-toolkit'
import PDFViewer from '../component-pdf-viewer'
import { Notification, Loading, LoadingIcon } from './ui'
import { Notification, Loading, LoadingIcon, A } from './ui'
const Doc = styled.div`
font-family: ${th('fontReading')};
@@ -68,13 +68,13 @@ class ManuscriptPreview extends React.Component {
)
}
return (
<Notification type="info">
<Notification type="warning">
{`Unable to generate manuscript preview from ${file.filename}. `}
{file.mimeType === 'application/pdf' ||
file.mimeType ===
'application/vnd.openxmlformats-officedocument.wordprocessingml.document' ? (
<React.Fragment>
Please ensure your file is uncorrupted.
{`Please ensure your file is uncorrupted and check content and formatting by `}
</React.Fragment>
) : (
<React.Fragment>
@@ -82,6 +82,15 @@ class ManuscriptPreview extends React.Component {
<em>.docx</em>
{` and `}
<em>.pdf</em>
{` Please ensure your file is uncorrupted and check content and formatting by `}
<A
download={file.filename}
href={file.url}
title="Download the manuscript"
>
downloading the original source file
</A>
{'.'}
</React.Fragment>
)}
</Notification>