import React from 'react'; import PropTypes from 'prop-types'; import styles from './ChangeEmailContentDialog.css'; import InputField from './InputField'; import { Button } from 'plugin-api/beta/client/components/ui'; import { t } from 'plugin-api/beta/client/services'; class ChangeEmailContentDialog extends React.Component { state = { showError: false, }; showError = () => { this.setState({ showError: true, }); }; confirmChanges = async e => { e.preventDefault(); if (this.formHasError()) { this.showError(); return; } await this.props.save(); this.props.next(); }; formHasError = () => this.props.hasError('confirmPassword'); render() { return (
{t('talk-plugin-local-auth.change_email.description')}