rename
parent
c794de0e9f
commit
57cdf314d5
|
@ -83,7 +83,7 @@ class Playground extends React.Component {
|
|||
options={options}
|
||||
debugAst={editorState.showAst}
|
||||
debugDoc={editorState.showDoc}
|
||||
secondFormat={editorState.showSecondFormat}
|
||||
reformat={editorState.showSecondFormat}
|
||||
>
|
||||
{({ formatted, debug }) => (
|
||||
<React.Fragment>
|
||||
|
|
|
@ -18,7 +18,7 @@ export default class PrettierFormat extends React.Component {
|
|||
"options",
|
||||
"debugAst",
|
||||
"debugDoc",
|
||||
"secondFormat"
|
||||
"reformat"
|
||||
]) {
|
||||
if (prevProps[key] !== this.props[key]) {
|
||||
this.format();
|
||||
|
@ -34,7 +34,7 @@ export default class PrettierFormat extends React.Component {
|
|||
options,
|
||||
debugAst: ast,
|
||||
debugDoc: doc,
|
||||
secondFormat: reformat
|
||||
reformat
|
||||
} = this.props;
|
||||
|
||||
worker
|
||||
|
|
Loading…
Reference in New Issue