Skip to content
Snippets Groups Projects
Commit 7a72da5c authored by Jure's avatar Jure
Browse files

refactor: move the manuscript component

parent 0c72453f
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,7 @@ const Manuscript = ({ ...@@ -67,6 +67,7 @@ const Manuscript = ({
// fileUpload={fileUpload} // fileUpload={fileUpload}
// onChange={source => updateManuscript({ source })} // onChange={source => updateManuscript({ source })}
content={content} content={content}
readonly
/> />
) : ( ) : (
<Spinner /> <Spinner />
......
...@@ -50,6 +50,6 @@ export default compose( ...@@ -50,6 +50,6 @@ export default compose(
withProps(({ manuscript }) => ({ withProps(({ manuscript }) => ({
content: manuscript.meta.source, content: manuscript.meta.source,
file: manuscript.files.find(file => file.fileType === 'manuscript') || {}, file: manuscript.files.find(file => file.fileType === 'manuscript') || {},
channel: manuscript.channels.find(c => (c.type = 'all')), channel: manuscript.channels.find(c => c.type === 'all'),
})), })),
)(Manuscript) )(Manuscript)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment