You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
425 B

// Grid component actions and action creators.
export const GRID_ACTION = 'GRID_ACTION';
export const GENERATE = 'GENERATE';
export const UPDATE = 'UPDATE';
export const generateValues = (count, level) => ({
type: GRID_ACTION,
action: GENERATE,
count: count,
level: level
});
export const updateValues = (index, value) => ({
type: GRID_ACTION,
action: UPDATE,
index: index,
value: value
});