aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/Modal/OptionModal.jsx
diff options
context:
space:
mode:
authorMatthew Shao <me@matshao.com>2017-06-30 21:12:50 +0800
committerMatthew Shao <me@matshao.com>2017-06-30 21:12:50 +0800
commitaad0b95cbe65e97574d49f3933002d347470d1ef (patch)
tree39f43ffeb194a3b409031f63f59f2644bbbc062d /web/src/js/components/Modal/OptionModal.jsx
parente28f3881dc9a72da73bebcaa7606a2c681151d6e (diff)
downloadmitmproxy-aad0b95cbe65e97574d49f3933002d347470d1ef.tar.gz
mitmproxy-aad0b95cbe65e97574d49f3933002d347470d1ef.tar.bz2
mitmproxy-aad0b95cbe65e97574d49f3933002d347470d1ef.zip
[web] Update js/components/Modal/OptionModal.jsx
Diffstat (limited to 'web/src/js/components/Modal/OptionModal.jsx')
-rw-r--r--web/src/js/components/Modal/OptionModal.jsx45
1 files changed, 45 insertions, 0 deletions
diff --git a/web/src/js/components/Modal/OptionModal.jsx b/web/src/js/components/Modal/OptionModal.jsx
new file mode 100644
index 00000000..500495c4
--- /dev/null
+++ b/web/src/js/components/Modal/OptionModal.jsx
@@ -0,0 +1,45 @@
+import React, { Component } from 'react'
+import { connect } from 'react-redux'
+import * as modalAction from '../../ducks/ui/modal'
+
+class PureOptionModal extends Component {
+
+ constructor(props, context) {
+ super(props, context)
+ this.state = { title: 'Options', }
+ }
+
+ render() {
+ const { hideModal } = this.props
+ const { title } = this.state
+ return (
+ <div>
+ <div className="modal-header">
+ <button type="button" className="close" data-dismiss="modal" onClick={() => {
+ hideModal()
+ }}>
+ <i className="fa fa-fw fa-times"></i>
+ </button>
+ <div className="modal-title">
+ <h4>{ title }</h4>
+ </div>
+ </div>
+
+ <div className="modal-body">
+ ...
+ </div>
+
+ <div className="modal-footer">
+ <button type="button" className="btn btn-primary">Save Changes</button>
+ </div>
+ </div>
+ )
+ }
+}
+
+export default connect(
+ state => ({
+
+ }),
+ { hideModal: modalAction.hideModal }
+)(PureOptionModal)