Files
talk/plugins/talk-plugin-auth/client/profile-settings/components/DeleteMyAccount.js
T
2018-05-01 00:17:57 -03:00

58 lines
1.3 KiB
JavaScript

import React from 'react';
import cn from 'classnames';
import styles from './DeleteMyAccount.css';
import { Button } from 'plugin-api/beta/client/components/ui';
import DeleteMyAccountDialog from './DeleteMyAccountDialog';
const initialState = { showDialog: false };
class DeleteMyAccount extends React.Component {
state = initialState;
showDialog = () => {
this.setState({
showDialog: true,
});
};
closeDialog = () => {
this.setState({
showDialog: false,
});
};
render() {
return (
<div className="talk-plugin-auth--delete-my-account">
<DeleteMyAccountDialog closeDialog={this.closeDialog} />
<h3
className={cn(
styles.title,
'talk-plugin-auth--delete-my-account-description'
)}
>
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>
<Button
className={cn(styles.button)}
icon="delete"
onClick={this.onSave}
>
Delete My Account
</Button>
</div>
);
}
}
export default DeleteMyAccount;