14 lines
678 B
JavaScript
14 lines
678 B
JavaScript
export const setText = text => ({ type: 'SET_TEXT', payload: text })
|
|
export const resetSegment = () => ({ type: 'SET_CURRENT_SEGMENT', payload: 0 })
|
|
export const incrementSegment = () => ({ type: 'INC_SEGMENT' })
|
|
export const decrementSegment = () => ({ type: 'DEC_SEGMENT' })
|
|
export const incrementWord = () => ({ type: 'INC_WORD' })
|
|
export const decrementWord = () => ({ type: 'DEC_WORD' })
|
|
export const incrementSentence = () => ({ type: 'INC_SENTENCE' })
|
|
export const decrementSentence = () => ({ type: 'DEC_SENTENCE' })
|
|
export const setMaxLength = length => ({
|
|
type: 'SET_MAX_LENGTH',
|
|
payload: length
|
|
})
|
|
export const setWpm = wpm => ({ type: 'SET_WPM', payload: wpm })
|