Download wp-calypso/client/me/account/close-link.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 817 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/account/close-link.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/me/account/close-link.jsx
-
curl -L -o close-link.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/account/close-link.jsx
817 Bytes
| import { CompactCard } from '@automattic/components'; | |
| import { localize } from 'i18n-calypso'; | |
| import { Component } from 'react'; | |
| import './close-link.scss'; | |
| const noop = () => {}; | |
| class AccountSettingsCloseLink extends Component { | |
| render() { | |
| const { translate } = this.props; | |
| const href = '/me/account/close'; | |
| const onClick = noop; | |
| return ( | |
| <CompactCard href={ href } onClick={ onClick } className="account__settings-close"> | |
| <div> | |
| <p className="account__close-section-title is-warning"> | |
| { translate( 'Delete your account permanently' ) } | |
| </p> | |
| <p className="account__close-section-desc"> | |
| { translate( 'Delete all of your sites, and close your account completely.' ) } | |
| </p> | |
| </div> | |
| </CompactCard> | |
| ); | |
| } | |
| } | |
| export default localize( AccountSettingsCloseLink ); | |