components/ProfileEdit/ProfileEditForm/ProfileEditFormPassword/ProfileEditFormPassword.jsx

/**
 * Поля смены пароля
 * @module ProfileEditForm
 * @author Ihor Bielchenko
 * @requires react
 * @requires react#Component
 * @requires react-redux#connect
 */

import React, { Component } from 'react';
import { connect } from 'react-redux';

/**
 * Поля смены пароля
 * @extends Component
 */
class ProfileEditFormPassword extends Component {

	/**
	 * Render component
	 * @return {Object} jsx object
	 */
	render() {
		return <div className="block3">
					<div>
						<span className="main-span">{this.props.lang.edit_current_password_title}
							<input id="user-current-password" type="text" />
						</span>
					</div>
						
					<div>
						<span className="main-span">{this.props.lang.edit_new_password_title} 
							<input id="user-new-password" type="text" />
						</span>
					</div>
				</div>
	}
}

/**
 * Init redux states
 * @param {Object} state
 * @return {Object}
 */
function mapStateToProps(state) {
	return {
		lang: state.lang,
	}
}

export default connect(mapStateToProps)(ProfileEditFormPassword);