Updating cache

This commit is contained in:
okbel
2018-05-01 17:18:58 -03:00
parent 5eead8b7ee
commit ff7ee2aefc
12 changed files with 216 additions and 58 deletions
@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import moment from 'moment';
import styles from './DeleteMyAccount.css';
import { Button } from 'plugin-api/beta/client/components/ui';
import DeleteMyAccountDialog from './DeleteMyAccountDialog';
@@ -52,6 +53,7 @@ class DeleteMyAccount extends React.Component {
<div className="talk-plugin-auth--delete-my-account">
<DeleteMyAccountDialog
requestAccountDeletion={this.requestAccountDeletion}
showDialog={this.state.showDialog}
closeDialog={this.closeDialog}
/>
<h3
@@ -62,6 +64,15 @@ class DeleteMyAccount extends React.Component {
>
Delete My Account
</h3>
<p
className={cn(
styles.description,
'talk-plugin-auth--delete-my-account-description'
)}
>
Deleting your account will permanently erase your profile and remove
all your comments from this site.
</p>
<p
className={cn(
styles.description,
@@ -70,12 +81,14 @@ class DeleteMyAccount extends React.Component {
>
{scheduledDeletionDate &&
`You have already submitted a request to delete your account.
Your account will be deleted on ${scheduledDeletionDate}. You may
Your account will be deleted on ${moment(
scheduledDeletionDate
).format('MMM Do YYYY, h:mm:ss a')}. You may
cancel the request until that time`}
</p>
{scheduledDeletionDate ? (
<Button
className={cn(styles.button)}
className={cn(styles.button, styles.secondary)}
onClick={this.cancelAccountDeletion}
>
Cancel Account Deletion Request