-
-
-
-
+// Don't inject component styles (use our own)
+Tabs.setUseDefaultStyles(false);
+
+class RequestPane extends Component {
+ shouldComponentUpdate (nextProps, nextState) {
+ return nextProps.request !== this.props.request
+ }
+
+ render () {
+ const {request, updateRequest} = this.props;
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Params
+
+ updateRequest(Object.assign({}, request, {body}) )}
+ debounceMillis={500}
+ options={{mode: request._mode, lineNumbers: true}}/>
+
+ Basic Auth
+ Headers
+
-
-
-
-
- {['Query Params', 'Body', 'Headers', 'Basic Auth'].map((name =>
-
- ))}
-
-
{localStorage['json'] = v}}
- options={{mode: 'application/json', lineNumbers: true}}/>
-
-
-);
+
+ );
+ }
+}
-RequestPane.propTypes = {};
+RequestPane.propTypes = {
+ updateRequest: PropTypes.func.isRequired,
+ request: PropTypes.object.isRequired
+};
export default RequestPane;
diff --git a/app/components/ResponsePane.js b/app/components/ResponsePane.js
index 71a89066e..eaa9c9fea 100644
--- a/app/components/ResponsePane.js
+++ b/app/components/ResponsePane.js
@@ -1,20 +1,22 @@
-import React from 'react'
+import React, {PropTypes} from 'react'
import Editor from '../components/Editor'
const ResponsePane = (props) => (
-
-
+
+
200 SUCCESS
GET https://google.com
-
-
+
+
);
-ResponsePane.propTypes = {};
+ResponsePane.propTypes = {
+ request: PropTypes.object.isRequired
+};
export default ResponsePane;
diff --git a/app/components/Sidebar.js b/app/components/Sidebar.js
index 8f9253076..0a9e40292 100644
--- a/app/components/Sidebar.js
+++ b/app/components/Sidebar.js
@@ -1,22 +1,43 @@
-import React from 'react'
+import React, {PropTypes} from 'react'
const Sidebar = (props) => (