Download wp-calypso/client/state/ui/section/actions.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 414 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/section/actions.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/section/actions.js
-
curl -L -o actions.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/section/actions.js
414 Bytes
| import { SECTION_SET, SECTION_LOADING_SET } from 'calypso/state/action-types'; | |
| import 'calypso/state/ui/init'; | |
| export function setSection( section, options = {} ) { | |
| const action = { | |
| ...options, | |
| type: SECTION_SET, | |
| }; | |
| if ( section ) { | |
| action.section = section; | |
| } | |
| return action; | |
| } | |
| export function setSectionLoading( isSectionLoading ) { | |
| return { | |
| type: SECTION_LOADING_SET, | |
| isSectionLoading, | |
| }; | |
| } | |