Commit 83949262 authored by Tamlyn Rhodes's avatar Tamlyn Rhodes

fix(component-manuscript): remove unused style and fix styleguide

parent bb40334e
Pipeline #4687 passed with stages
in 4 minutes and 36 seconds
import React from 'react'
import { withRouter } from 'react-router-dom'
import SimpleEditor from 'wax-editor-react'
import classes from './Manuscript.local.scss'
// TODO: convert user teams to roles (see SimpleEditorWrapper)?
......@@ -14,7 +13,6 @@ const Manuscript = ({
version,
}) => (
<SimpleEditor
classes={classes.fullscreen}
content={content}
fileUpload={fileUpload}
history={history}
......
.fullscreen {
background: white;
bottom: 0;
left: 0;
overflow: hidden;
position: fixed;
right: 0;
top: 50px;
}
An editor for a manuscript.
```js
const content = '<h1>This is a heading</h1><p>This is a paragraph.</p>'
const content = `
<container id="main">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</container>`
const currentUser = {
teams: [
{
teamType: {
name: 'Production Editor'
}
}
]
teams: [{ teamType: { name: 'Production Editor' } }]
};
<Manuscript
content={content}
currentUser={currentUser}
fileUpload={data => console.log(data)}
updateManuscript={data => console.log(data)}/>
updateManuscript={data => console.log(data)}
version={{}}/>
```
Markdown is supported
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