diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-05-27 11:43:01 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-05-27 11:43:01 -0700 |
commit | abf3cae54e715e53559b4c7103f8b2247ed791dc (patch) | |
tree | 765b55027aba7685264e838d285c0587d18b9205 /web/src/js/components/flowview/index.js | |
parent | 22ecd022a84e1c3762dd425bc9bee2230e393d8d (diff) | |
parent | 9e869f0aa17cbd202f72bab1540d866f7274a8a1 (diff) | |
download | mitmproxy-abf3cae54e715e53559b4c7103f8b2247ed791dc.tar.gz mitmproxy-abf3cae54e715e53559b4c7103f8b2247ed791dc.tar.bz2 mitmproxy-abf3cae54e715e53559b4c7103f8b2247ed791dc.zip |
Merge pull request #1169 from gzzhanghao/contentview
[web] Eliminate Router mixin and RawMixin
Diffstat (limited to 'web/src/js/components/flowview/index.js')
-rw-r--r-- | web/src/js/components/flowview/index.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web/src/js/components/flowview/index.js b/web/src/js/components/flowview/index.js index 47531f58..6f4f7395 100644 --- a/web/src/js/components/flowview/index.js +++ b/web/src/js/components/flowview/index.js @@ -1,6 +1,5 @@ import React from "react"; -import {Router, StickyHeadMixin} from "../common.js" import Nav from "./nav.js"; import {Request, Response, Error} from "./messages.js"; import Details from "./details.js"; @@ -15,7 +14,6 @@ var allTabs = { }; var FlowView = React.createClass({ - mixins: [StickyHeadMixin, Router], getInitialState: function () { return { prompt: false @@ -39,7 +37,7 @@ var FlowView = React.createClass({ this.selectTab(tabs[nextIndex]); }, selectTab: function (panel) { - this.updateLocation(`/flows/${this.props.flow.id}/${panel}`); + this.props.updateLocation(`/flows/${this.props.flow.id}/${panel}`); }, promptEdit: function () { var options; @@ -114,4 +112,4 @@ var FlowView = React.createClass({ } }); -export default FlowView;
\ No newline at end of file +export default FlowView; |