aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/MainView.jsx
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-07-21 01:14:55 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-07-21 01:14:55 -0700
commit8a3a21bba1e6706295cc22e1b3a876a7a86cb705 (patch)
tree9408324d45850fd4def75c60cf3537a12f632217 /web/src/js/components/MainView.jsx
parent427fffbcb82ba16dd65a4fee4000a05215e859b8 (diff)
downloadmitmproxy-8a3a21bba1e6706295cc22e1b3a876a7a86cb705.tar.gz
mitmproxy-8a3a21bba1e6706295cc22e1b3a876a7a86cb705.tar.bz2
mitmproxy-8a3a21bba1e6706295cc22e1b3a876a7a86cb705.zip
web: fix ValueEditor, clean up code
Diffstat (limited to 'web/src/js/components/MainView.jsx')
-rw-r--r--web/src/js/components/MainView.jsx18
1 files changed, 0 insertions, 18 deletions
diff --git a/web/src/js/components/MainView.jsx b/web/src/js/components/MainView.jsx
index b0bbf70e..d7d1ebeb 100644
--- a/web/src/js/components/MainView.jsx
+++ b/web/src/js/components/MainView.jsx
@@ -1,6 +1,5 @@
import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
-import { Query } from '../actions.js'
import Splitter from './common/Splitter'
import FlowTable from './FlowTable'
import FlowView from './FlowView'
@@ -14,19 +13,6 @@ class MainView extends Component {
sort: PropTypes.object,
}
- /**
- * @todo move to actions
- * @todo replace with mapStateToProps
- */
- componentWillReceiveProps(nextProps) {
- if (nextProps.location.query[Query.SEARCH] !== nextProps.filter) {
- this.props.updateFilter(nextProps.location.query[Query.SEARCH], false)
- }
- if (nextProps.location.query[Query.HIGHLIGHT] !== nextProps.highlight) {
- this.props.updateHighlight(nextProps.location.query[Query.HIGHLIGHT], false)
- }
- }
-
render() {
const { flows, selectedFlow, highlight } = this.props
return (
@@ -66,9 +52,5 @@ export default connect(
updateFilter,
updateHighlight,
updateFlow: flowsActions.update,
- },
- undefined,
- {
- withRef: true
}
)(MainView)