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"
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"
Daniel Lo Nigro committed
Aug 31, 2014 at 21:48 UTC
e11b4078bc66371208d4d296d604540bdc185b0c
2 files changed
+6
-1
docs/_js/html-jsx.js
+2
@@ -79,6 +79,8 @@ var HELLO_COMPONENT = "\
79
codeText={HELLO_COMPONENT}
80
renderCode={true}
81
transformer={this.convertToJSX}
82
+ showCompiledJSTab={false}
83
+ editorTabTitle="Live HTML Editor"
84
/>
85
</div>
86
);
docs/_js/live_editor.js
+4
-1
@@ -79,6 +79,8 @@ var ReactPlayground = React.createClass({
79
codeText: React.PropTypes.string.isRequired,
80
transformer: React.PropTypes.func,
81
renderCode: React.PropTypes.bool,
82
+ showCompiledJSTab: React.PropTypes.bool,
83
+ editorTabTitle: React.PropTypes.string
84
},
85
86
getDefaultProps: function() {
@@ -86,6 +88,7 @@ var ReactPlayground = React.createClass({
88
transformer: function(code) {
89
return JSXTransformer.transform(code).code;
90
},
91
+ editorTabTitle: 'Live JSX Editor',
92
showCompiledJSTab: true
93
};
94
},
@@ -150,7 +153,7 @@ var ReactPlayground = React.createClass({
153
<div
154
className={JSXTabClassName}
155
onClick={this.handleCodeModeSwitch.bind(this, this.MODES.JSX)}>
153
- Live JSX Editor
156
+ {this.props.editorTabTitle}
157
</div>
158
159
return (