mirror of
https://github.com/wassname/talk.git
synced 2026-08-05 13:30:26 +08:00
Introduce final form, i18n helper, validators and refactor AddEmailAddress (#1636)
* 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
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user