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.
15 lines
415 B
15 lines
415 B
export const HIGHSCORE_ACTION = 'HIGHSCORE_ACTION';
|
|
export const UPDATE_INITIALS = 'HIGHSCORE_UPDATE_INITIALS';
|
|
export const UPDATE_SCORE = 'HIGHSCORE_UPDATE_SCORE';
|
|
|
|
export const updateInitials = (initials) => ({
|
|
type: HIGHSCORE_ACTION,
|
|
action: UPDATE_INITIALS,
|
|
initials: initials
|
|
});
|
|
|
|
export const updateScore = (score) => ({
|
|
type: HIGHSCORE_ACTION,
|
|
action: UPDATE_SCORE,
|
|
score: score
|
|
});
|
|
|