diff options
author | Clemens <cle1000.cb@gmail.com> | 2016-08-05 12:47:34 +0200 |
---|---|---|
committer | Clemens <cle1000.cb@gmail.com> | 2016-08-05 12:47:34 +0200 |
commit | 9b0b007a5da75d70ec25b141c2a47b1b0010f5a3 (patch) | |
tree | 373d864b95f8adfff875a24c3c2284363a607994 /web/src/js/components/ContentView.jsx | |
parent | a8aa1f2d1c8fe19313ca8abe07f9d6aa431fc3c3 (diff) | |
download | mitmproxy-9b0b007a5da75d70ec25b141c2a47b1b0010f5a3.tar.gz mitmproxy-9b0b007a5da75d70ec25b141c2a47b1b0010f5a3.tar.bz2 mitmproxy-9b0b007a5da75d70ec25b141c2a47b1b0010f5a3.zip |
change some style
Diffstat (limited to 'web/src/js/components/ContentView.jsx')
-rw-r--r-- | web/src/js/components/ContentView.jsx | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/web/src/js/components/ContentView.jsx b/web/src/js/components/ContentView.jsx index 128d8e81..398438ab 100644 --- a/web/src/js/components/ContentView.jsx +++ b/web/src/js/components/ContentView.jsx @@ -2,12 +2,10 @@ import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' import * as ContentViews from './ContentView/ContentViews' import * as MetaViews from './ContentView/MetaViews' -import ViewSelector from './ContentView/ViewSelector' -import UploadContentButton from './ContentView/UploadContentButton' -import DownloadContentButton from './ContentView/DownloadContentButton' import ShowFullContentButton from './ContentView/ShowFullContentButton' -import { setContentView, displayLarge, updateEdit } from '../ducks/ui/flow' + +import { displayLarge, updateEdit } from '../ducks/ui/flow' ContentView.propTypes = { // It may seem a bit weird at the first glance: @@ -20,7 +18,7 @@ ContentView.propTypes = { ContentView.isContentTooLarge = msg => msg.contentLength > 1024 * 1024 * (ContentViews.ViewImage.matches(msg) ? 10 : 0.2) function ContentView(props) { - const { flow, message, contentView, isDisplayLarge, displayLarge, uploadContent, onContentChange, readonly, contentViewDescription } = props + const { flow, message, contentView, isDisplayLarge, displayLarge, onContentChange, readonly } = props if (message.contentLength === 0 && readonly) { return <MetaViews.ContentEmpty {...props}/> @@ -39,15 +37,6 @@ function ContentView(props) { <div className="contentview"> <View flow={flow} message={message} contentView={contentView} readonly={readonly} onChange={onContentChange}/> <ShowFullContentButton/> - <div className="view-options footer navbar-fixed-bottom"> - <ViewSelector message={message}/> - - <DownloadContentButton flow={flow} message={message}/> - - <UploadContentButton uploadContent={uploadContent}/> - - <span>{contentViewDescription}</span> - </div> </div> ) } @@ -56,7 +45,6 @@ export default connect( state => ({ contentView: state.ui.flow.contentView, isDisplayLarge: state.ui.flow.displayLarge, - contentViewDescription: state.ui.flow.viewDescription }), { displayLarge, |