Download wp-calypso/client/state/concierge/appointment-details/reducer.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/concierge/appointment-details/reducer.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/concierge/appointment-details/reducer.js
-
curl -L -o reducer.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/concierge/appointment-details/reducer.js
503 Bytes
| import { | |
| CONCIERGE_APPOINTMENT_DETAILS_REQUEST, | |
| CONCIERGE_APPOINTMENT_DETAILS_UPDATE, | |
| } from 'calypso/state/action-types'; | |
| import { keyedReducer } from 'calypso/state/utils'; | |
| export const appointmentDetails = ( state = null, action ) => { | |
| switch ( action.type ) { | |
| case CONCIERGE_APPOINTMENT_DETAILS_REQUEST: | |
| return null; | |
| case CONCIERGE_APPOINTMENT_DETAILS_UPDATE: | |
| return action.appointmentDetails; | |
| } | |
| return state; | |
| }; | |
| export default keyedReducer( 'appointmentId', appointmentDetails ); | |