diff options
author | Matthew Shao <me@matshao.com> | 2017-06-08 11:26:36 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-06-08 11:26:36 +0800 |
commit | d1a40def200c60fd26549f766794ca2d5c8da291 (patch) | |
tree | b58d0c4ee35cf1e0772312ec2bb3af394abcf44c /web/src/js/components | |
parent | 602ab1a687b2f61853f667056ff33c04f881a921 (diff) | |
download | mitmproxy-d1a40def200c60fd26549f766794ca2d5c8da291.tar.gz mitmproxy-d1a40def200c60fd26549f766794ca2d5c8da291.tar.bz2 mitmproxy-d1a40def200c60fd26549f766794ca2d5c8da291.zip |
[web] Export PureViewServer in ContentView/ContentView.jsx
Diffstat (limited to 'web/src/js/components')
-rw-r--r-- | web/src/js/components/ContentView/ContentViews.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/src/js/components/ContentView/ContentViews.jsx b/web/src/js/components/ContentView/ContentViews.jsx index 136188d4..dfae937e 100644 --- a/web/src/js/components/ContentView/ContentViews.jsx +++ b/web/src/js/components/ContentView/ContentViews.jsx @@ -30,7 +30,7 @@ function Edit({ content, onChange }) { } Edit = ContentLoader(Edit) -class ViewServer extends Component { +export class PureViewServer extends Component { static propTypes = { showFullContent: PropTypes.bool.isRequired, maxLines: PropTypes.number.isRequired, @@ -85,7 +85,7 @@ class ViewServer extends Component { } -ViewServer = connect( +const ViewServer = connect( state => ({ showFullContent: state.ui.flow.showFullContent, maxLines: state.ui.flow.maxContentLines @@ -94,6 +94,6 @@ ViewServer = connect( setContentViewDescription, setContent } -)(ContentLoader(ViewServer)) +)(ContentLoader(PureViewServer)) export { Edit, ViewServer, ViewImage } |