deer / client /src /reducers /sendFile.js
linuxrun's picture
Upload 120 files
181e22f verified
Raw History Blame Contribute Delete
370 Bytes
import produce from 'immer';
import * as types from '../common/actionTypes';
const initialState = {
recvCode: '',
};
const fileReducer = produce((draft = initialState, action) => {
switch (action.type) {
case types.UPDATE_SEND_FILE_INFO: {
draft.recvCode = action.payload.recvCode;
break;
}
}
return draft;
});
export default fileReducer;