2016-05-02 23:02:03 +05:30
|
|
|
import React, { Component, PropTypes } from 'react';
|
|
|
|
|
|
|
|
import { FormModel } from 'components/ui/form';
|
|
|
|
import ChangeEmail from 'components/profile/changeEmail/ChangeEmail';
|
|
|
|
|
|
|
|
class ProfileChangeEmailPage extends Component {
|
|
|
|
static displayName = 'ProfileChangeEmailPage';
|
|
|
|
|
|
|
|
static propTypes = {
|
2016-05-12 10:00:10 +05:30
|
|
|
email: PropTypes.string.isRequired
|
2016-05-02 23:02:03 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
form = new FormModel();
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<ChangeEmail form={this.form}
|
|
|
|
onSubmit={this.onSubmit}
|
|
|
|
email={this.props.email}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
onSubmit = () => {
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
|
|
|
export default connect((state) => ({
|
|
|
|
email: state.user.email
|
|
|
|
}), {
|
|
|
|
})(ProfileChangeEmailPage);
|