Download spectrum/src/actions/modals.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/actions/modals.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/actions/modals.js
-
curl -L -o modals.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/actions/modals.js
297 Bytes
| // @flow | |
| import type { ModalTypes } from 'src/components/modals/modalRoot'; | |
| export const openModal = (name: ModalTypes, props?: Object) => { | |
| return { | |
| type: 'SHOW_MODAL', | |
| modalType: name, | |
| modalProps: props || {}, | |
| }; | |
| }; | |
| export const closeModal = () => ({ | |
| type: 'HIDE_MODAL', | |
| }); | |