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, errors: { passowrd: '', }, }; showError = () => { this.setState({ showError: true, }); }; confirmChanges = async () => { if (this.formHasError()) { this.showError(); } else { await this.props.saveChanges(); this.props.closeDialog(); } }; render() { return (
{t('talk-plugin-auth.change_email.description')}