Download wp-calypso/client/state/ui/actions/notifications.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 305 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/actions/notifications.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/actions/notifications.js
-
curl -L -o notifications.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/actions/notifications.js
305 Bytes
| import { NOTIFICATIONS_PANEL_TOGGLE } from 'calypso/state/action-types'; | |
| import 'calypso/state/ui/init'; | |
| /** | |
| * Sets ui state to toggle the notifications panel | |
| * @returns {Object} An action object | |
| */ | |
| export const toggleNotificationsPanel = () => { | |
| return { | |
| type: NOTIFICATIONS_PANEL_TOGGLE, | |
| }; | |
| }; | |