import React from 'react'; import PropTypes from 'prop-types'; import styles from './styles.css'; import {Button, TextField} from 'plugin-api/beta/client/components/ui'; import t from 'coral-framework/services/i18n'; class ForgotContent extends React.Component { constructor() { super(); this.state = { value: '', }; } handleSubmit = (e) => { e.preventDefault(); this.props.fetchForgotPassword(this.state.value); }; handleChangEmail = (e) => { const {value} = e.target; this.setState({value}); } render() { const {changeView, auth} = this.props; const {passwordRequestSuccess, passwordRequestFailure} = auth; return (