exact-resistor-calculator/src/actions/calcActions.js

26 lines
346 B
JavaScript
Raw Normal View History

import * as types from './actionTypes';
export function updatevalue(form, index, value) {
return {
type: types.UPDATEVALUE,
form,
index,
value,
};
}
export function updatemult(form, index, mult) {
return {
type: types.UPDATEMULT,
form,
index,
mult,
};
}
export function clearall() {
return {
type: types.CLEARALL,
};
}