From aad0b95cbe65e97574d49f3933002d347470d1ef Mon Sep 17 00:00:00 2001 From: Matthew Shao Date: Fri, 30 Jun 2017 21:12:50 +0800 Subject: [web] Update js/components/Modal/OptionModal.jsx --- web/src/js/components/Modal/OptionModal.jsx | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 web/src/js/components/Modal/OptionModal.jsx (limited to 'web/src/js') 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 ( +
+
+ +
+

{ title }

+
+
+ +
+ ... +
+ +
+ +
+
+ ) + } +} + +export default connect( + state => ({ + + }), + { hideModal: modalAction.hideModal } +)(PureOptionModal) -- cgit v1.2.3