Store file upload history on server
This commit is contained in:
@@ -8,6 +8,9 @@ const sharing = (state = [], action) =>
|
||||
case 'ADD_FILE':
|
||||
return [ ...state, action.payload ];
|
||||
|
||||
case 'ADD_FILE_HISTORY':
|
||||
return [ ...action.payload.fileHistory, ...state ];
|
||||
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
@@ -449,6 +449,14 @@ export const addFile = (payload) =>
|
||||
};
|
||||
};
|
||||
|
||||
export const addFileHistory = (fileHistory) =>
|
||||
{
|
||||
return {
|
||||
type: 'ADD_FILE_HISTORY',
|
||||
payload: { fileHistory }
|
||||
};
|
||||
};
|
||||
|
||||
export const setPicture = (picture) =>
|
||||
({
|
||||
type : 'SET_PICTURE',
|
||||
|
||||
Reference in New Issue
Block a user