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.
35 lines
721 B
35 lines
721 B
export const BOARD_ACTION = 'BOARD_ACTION';
|
|
export const GENERATE = 'GENERATE';
|
|
export const UPDATE = 'UPDATE';
|
|
export const HIDE = 'HIDE';
|
|
export const SHOW = 'SHOW';
|
|
export const NEXT_LEVEL = 'NEXT_LEVEL';
|
|
|
|
export const generateValues = () => ({
|
|
type: BOARD_ACTION,
|
|
action: GENERATE
|
|
});
|
|
|
|
export const updateValue = (index, value) => ({
|
|
type: BOARD_ACTION,
|
|
action: UPDATE,
|
|
index: index,
|
|
value: value
|
|
});
|
|
|
|
export const showValue = (index) => ({
|
|
type: BOARD_ACTION,
|
|
action: SHOW,
|
|
index: index
|
|
});
|
|
|
|
export const hideValue = (index) => ({
|
|
type: BOARD_ACTION,
|
|
action: HIDE,
|
|
index: index
|
|
});
|
|
|
|
export const nextLevel = () => ({
|
|
type: BOARD_ACTION,
|
|
action: NEXT_LEVEL
|
|
});
|
|
|