File size: 503 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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 );
|