diff --git a/website/playground/EditorState.js b/website/playground/EditorState.js index c1b2d0c3d..7ec595a22 100644 --- a/website/playground/EditorState.js +++ b/website/playground/EditorState.js @@ -12,11 +12,15 @@ export default class extends React.Component { showDoc: false, showComments: false, showSecondFormat: false, + showInput: true, + showOutput: true, toggleSidebar: () => this.setState(stateToggler("showSidebar")), toggleAst: () => this.setState(stateToggler("showAst")), toggleDoc: () => this.setState(stateToggler("showDoc")), toggleComments: () => this.setState(stateToggler("showComments")), toggleSecondFormat: () => this.setState(stateToggler("showSecondFormat")), + toggleInput: () => this.setState(stateToggler("showInput")), + toggleOutput: () => this.setState(stateToggler("showOutput")), ...storage.get("editor_state"), }; } diff --git a/website/playground/Playground.js b/website/playground/Playground.js index 2e512fb42..9ec84dac7 100644 --- a/website/playground/Playground.js +++ b/website/playground/Playground.js @@ -220,6 +220,11 @@ class Playground extends React.Component { + )} +
- + {editorState.showInput ? ( + + ) : null} {editorState.showAst ? ( ) : null} - + {editorState.showOutput ? ( + + ) : null} {editorState.showSecondFormat ? (