13 lines
293 B
JavaScript
13 lines
293 B
JavaScript
|
// @flow
|
||
|
import * as ACTIONS from 'constants/action_types';
|
||
|
|
||
|
export const doUpdateUploadProgress = (
|
||
|
progress: string,
|
||
|
params: { [key: string]: any },
|
||
|
xhr: any
|
||
|
) => (dispatch: Dispatch) =>
|
||
|
dispatch({
|
||
|
type: ACTIONS.UPDATE_UPLOAD_PROGRESS,
|
||
|
data: { progress, params, xhr },
|
||
|
});
|