mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-13 00:03:15 +00:00
15 lines
272 B
JavaScript
15 lines
272 B
JavaScript
const dispatch = require('pico-flux').dispatch;
|
|
|
|
const Actions = {
|
|
addInc : (val = 1) => {
|
|
dispatch('ADD_INC', val);
|
|
},
|
|
delayInc : (val = 1) => {
|
|
dispatch('DELAY_INC', val)
|
|
},
|
|
setInc : (newInc) => {
|
|
dispatch('SET_INC', newInc);
|
|
},
|
|
};
|
|
|
|
module.exports = Actions; |