all files / src/redux/actions/ progress.js

76.92% Statements 10/13
100% Branches 0/0
0% Functions 0/3
76.92% Lines 10/13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24                           
'use strict';
 
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.setupProgress = setupProgress;
exports.onProgress = onProgress;
exports.resetProgress = resetProgress;
var SETUP_PROGRESS = exports.SETUP_PROGRESS = 'SETUP_PROGRESS';
var ON_SOME_PROGRESS = exports.ON_SOME_PROGRESS = 'ON_PROGRESS';
var RESET_PROGRESS = exports.RESET_PROGRESS = 'RESET_PROGRESS';
 
function setupProgress(total) {
  return { type: SETUP_PROGRESS, total: total };
}
 
function onProgress(current) {
  return { type: ON_SOME_PROGRESS, current: current };
}
 
function resetProgress(val) {
  return { type: RESET_PROGRESS, val: val };
}