Download wp-calypso/client/state/account/actions.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 553 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/account/actions.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/account/actions.js
-
curl -L -o actions.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/account/actions.js
553 Bytes
| import { ACCOUNT_CLOSE, ACCOUNT_CLOSE_SUCCESS, ACCOUNT_RESTORE } from 'calypso/state/action-types'; | |
| import 'calypso/state/data-layer/wpcom/me/account/close'; | |
| import 'calypso/state/data-layer/wpcom/me/account/restore'; | |
| import 'calypso/state/account/init'; | |
| export function closeAccount() { | |
| return { | |
| type: ACCOUNT_CLOSE, | |
| }; | |
| } | |
| export function closeAccountSuccess( response ) { | |
| return { | |
| type: ACCOUNT_CLOSE_SUCCESS, | |
| payload: response, | |
| }; | |
| } | |
| export function restoreAccount( token ) { | |
| return { | |
| type: ACCOUNT_RESTORE, | |
| payload: { token }, | |
| }; | |
| } | |