import React from 'react'; import PropTypes from 'prop-types'; import { Grid, Alert, Button } from 'react-bootstrap'; import { t, Trans, translate, Interpolate } from 'react-i18next'; import { T9n } from 'meteor-accounts-t9n'; const handleResendVerificationEmail = (emailAddress, t) => { Meteor.call('users.sendVerificationEmail', (error) => { if (error) { Bert.alert(T9n.get(`error.accounts.${error.reason}`), 'danger'); } else { Bert.alert(t("checkVerificationEmail", {email: emailAddress}), 'success'); } }); }; const ReSendEmail = props => (
{props.userId && !props.emailVerified ?

: ''}
); ReSendEmail.defaultProps = { userId: '', emailAddress: '', }; ReSendEmail.propTypes = { loading: PropTypes.bool.isRequired, userId: PropTypes.string, emailAddress: PropTypes.string, emailVerified: PropTypes.bool.isRequired, }; export default translate([], { wait: true })(ReSendEmail);