translations

This commit is contained in:
okbel
2018-05-03 13:45:33 -03:00
13 changed files with 91 additions and 109 deletions
@@ -43,13 +43,15 @@ class DeleteMyAccountDialog extends React.Component {
render() {
const { step } = this.state;
const { scheduledDeletionDate, organizationContactEmail } = this.props;
return (
<Dialog open={this.props.showDialog} className={styles.dialog}>
<span className={styles.close} onClick={this.cancel}>
×
</span>
<h3 className={styles.title}>
{t('talk-plugin-profile-data.delete_request.delete_my_account')}
{t('delete_request.delete_my_account')}
</h3>
<StepProgress currentStep={this.state.step} totalSteps={4} />
{step === 0 && (
@@ -79,7 +81,13 @@ class DeleteMyAccountDialog extends React.Component {
onChange={this.onChange}
/>
)}
{step === 4 && <DeleteMyAccountFinalStep finish={this.cancel} />}
{step === 4 && (
<DeleteMyAccountFinalStep
scheduledDeletionDate={scheduledDeletionDate}
organizationContactEmail={organizationContactEmail}
finish={this.cancel}
/>
)}
</Dialog>
);
}
@@ -89,6 +97,8 @@ DeleteMyAccountDialog.propTypes = {
showDialog: PropTypes.bool.isRequired,
closeDialog: PropTypes.func.isRequired,
requestAccountDeletion: PropTypes.func.isRequired,
scheduledDeletionDate: PropTypes.any.isRequired,
organizationContactEmail: PropTypes.string.isRequired,
};
export default DeleteMyAccountDialog;