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
417 B
18 lines
417 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 = (i, level) => ({
|
|
type: GRID_ACTION,
|
|
action: UPDATE,
|
|
index: i,
|
|
level: level
|
|
});
|
|
|