mirror of
https://github.com/wassname/talk.git
synced 2026-07-23 13:10:20 +08:00
58 lines
1.3 KiB
JavaScript
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;
|