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

fix: enable readonly mode for new Wax

parent 8c9781f7
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ const user = { ...@@ -27,7 +27,7 @@ const user = {
username: 'demo', username: 'demo',
} }
const Editoria = ({ content }) => ( const Editoria = ({ content, readonly }) => (
<Fragment> <Fragment>
{/* <GlobalStyle /> */} {/* <GlobalStyle /> */}
<Wax <Wax
...@@ -36,6 +36,7 @@ const Editoria = ({ content }) => ( ...@@ -36,6 +36,7 @@ const Editoria = ({ content }) => (
fileUpload={file => renderImage(file)} fileUpload={file => renderImage(file)}
layout={EditoriaLayout} layout={EditoriaLayout}
value={content} value={content}
readonly={readonly}
placeholder="Type Something..." placeholder="Type Something..."
// onChange={source => console.log(source)} // onChange={source => console.log(source)}
user={user} user={user}
......
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