mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-14 17:12:40 +00:00
Updating libs and adding basic flux
This commit is contained in:
15
shared/naturalcrit/brew.actions.js
Normal file
15
shared/naturalcrit/brew.actions.js
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user