Download wp-calypso/client/state/ui/masterbar-visibility/actions.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 432 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/masterbar-visibility/actions.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/masterbar-visibility/actions.js
-
curl -L -o actions.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/masterbar-visibility/actions.js
432 Bytes
| import { MASTERBAR_TOGGLE_VISIBILITY } from 'calypso/state/action-types'; | |
| import 'calypso/state/ui/init'; | |
| /** | |
| * Hide the masterbar. | |
| * @returns {Object} Action object | |
| */ | |
| export const hideMasterbar = () => ( { type: MASTERBAR_TOGGLE_VISIBILITY, isVisible: false } ); | |
| /** | |
| * Show the masterbar. | |
| * @returns {Object} Action object | |
| */ | |
| export const showMasterbar = () => ( { type: MASTERBAR_TOGGLE_VISIBILITY, isVisible: true } ); | |