mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
[web] Update js/components/Modal/OptionModal.jsx
This commit is contained in:
parent
e28f3881dc
commit
aad0b95cbe
45
web/src/js/components/Modal/OptionModal.jsx
Normal file
45
web/src/js/components/Modal/OptionModal.jsx
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user