diff --git a/app/actions/requests.js b/app/actions/requests.js
index a60d1e8d0..6d93685e2 100644
--- a/app/actions/requests.js
+++ b/app/actions/requests.js
@@ -37,7 +37,7 @@ function buildRequest (request) {
}
export function addRequest (name = 'My Request') {
- return (dispatch, getState) => {
+ return (dispatch) => {
dispatch(loadStart());
const request = buildRequest({name});
dispatch({type: types.REQUEST_ADD, request});
diff --git a/app/components/RequestBodyEditor.js b/app/components/RequestBodyEditor.js
new file mode 100644
index 000000000..229c7a6d2
--- /dev/null
+++ b/app/components/RequestBodyEditor.js
@@ -0,0 +1,30 @@
+import React, {Component, PropTypes} from 'react';
+import CodeEditor from './base/Editor'
+
+class RequestBodyEditor extends Component {
+ shouldComponentUpdate (nextProps) {
+ return this.props.request !== nextProps.request;
+ }
+
+ render () {
+ const {request, onChange, className} = this.props;
+ return (
+
+ )
+ }
+}
+
+RequestBodyEditor.propTypes = {
+ request: PropTypes.shape({
+ body: PropTypes.string.isRequired,
+ _mode: PropTypes.string.isRequired
+ }).isRequired,
+ onChange: PropTypes.func.isRequired
+};
+
+export default RequestBodyEditor;
diff --git a/app/components/Sidebar.js b/app/components/Sidebar.js
index 25a957152..063e6c615 100644
--- a/app/components/Sidebar.js
+++ b/app/components/Sidebar.js
@@ -1,53 +1,56 @@
import React, {PropTypes} from 'react'
-import Dropdown from '../components/Dropdown'
+import Dropdown from './base/Dropdown'
const Sidebar = (props) => (