Skip to content

Commit e11b407

Browse files
committed
Small tweaks to HTML to JSX page:
- Remove "Compiled JS" tab since it doesn't make sense - Relabelled editor to "Live HTML Editor" rather than "Live JSX Editor"
1 parent 820210f commit e11b407

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/_js/html-jsx.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ var HELLO_COMPONENT = "\
7979
codeText={HELLO_COMPONENT}
8080
renderCode={true}
8181
transformer={this.convertToJSX}
82+
showCompiledJSTab={false}
83+
editorTabTitle="Live HTML Editor"
8284
/>
8385
</div>
8486
);

docs/_js/live_editor.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,16 @@ var ReactPlayground = React.createClass({
7979
codeText: React.PropTypes.string.isRequired,
8080
transformer: React.PropTypes.func,
8181
renderCode: React.PropTypes.bool,
82+
showCompiledJSTab: React.PropTypes.bool,
83+
editorTabTitle: React.PropTypes.string
8284
},
8385

8486
getDefaultProps: function() {
8587
return {
8688
transformer: function(code) {
8789
return JSXTransformer.transform(code).code;
8890
},
91+
editorTabTitle: 'Live JSX Editor',
8992
showCompiledJSTab: true
9093
};
9194
},
@@ -150,7 +153,7 @@ var ReactPlayground = React.createClass({
150153
<div
151154
className={JSXTabClassName}
152155
onClick={this.handleCodeModeSwitch.bind(this, this.MODES.JSX)}>
153-
Live JSX Editor
156+
{this.props.editorTabTitle}
154157
</div>
155158

156159
return (

0 commit comments

Comments
 (0)