mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 21:13:12 +08:00
41fab3e11c
* Introduce final form, validators and refactor AddEmailAddress * First i18n script * Sort locales * Add delete and copy action * Copy over available validator translations * Add comments * Export validations in plugin-api * Linting * yarn.lock * Sort locales * Drop unused translations * Add translations for validators * Add action drop-unused * Add comments * Add note about limitation * Fix desc
28 lines
776 B
JavaScript
28 lines
776 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import styles from './VerifyEmailAddress.css';
|
|
import { t } from 'plugin-api/beta/client/services';
|
|
|
|
const VerifyEmailAddress = ({ emailAddress, onDone }) => (
|
|
<div>
|
|
<h4 className={styles.title}>
|
|
{t('talk-plugin-local-auth.add_email.verify.title')}
|
|
</h4>
|
|
<p className={styles.description}>
|
|
{t('talk-plugin-local-auth.add_email.verify.description', emailAddress)}
|
|
</p>
|
|
<div>
|
|
<button className={styles.button} onClick={onDone}>
|
|
{t('talk-plugin-local-auth.add_email.done')}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
VerifyEmailAddress.propTypes = {
|
|
emailAddress: PropTypes.string.isRequired,
|
|
onDone: PropTypes.func.isRequired,
|
|
};
|
|
|
|
export default VerifyEmailAddress;
|