Created
March 18, 2017 10:01
-
-
Save gyver98/9d088084834ec6a0f893c8576c7d9204 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { counterDefaultVal } from '../constants/counterDefaultVal'; | |
export const speedUp = (value) => { | |
return { | |
type: 'SPEED_UP', | |
value, | |
step: counterDefaultVal.speed.step, | |
maxValue: counterDefaultVal.speed.max | |
} | |
} | |
export const speedDown = (value) => { | |
return { | |
type: 'SPEED_DOWN', | |
value, | |
step: counterDefaultVal.speed.step, | |
minValue: counterDefaultVal.speed.min | |
} | |
} | |
export const temperatureUp = (value) => { | |
return { | |
type: 'TEMPERATURE_UP', | |
value, | |
step: counterDefaultVal.temperature.step, | |
maxValue: counterDefaultVal.temperature.max | |
} | |
} | |
export const temperatureDown = (value) => { | |
return { | |
type: 'TEMPERATURE_DOWN', | |
value, | |
step: counterDefaultVal.temperature.step, | |
minValue: counterDefaultVal.temperature.min | |
} | |
} | |
export const changeClimate = () => { | |
return { | |
type: 'CHANGE_CLIMATE' | |
} | |
} | |
export const changeWheel = (value) => { | |
return { | |
type: 'CHANGE_WHEEL', | |
value | |
} | |
} | |
export const updateStats = () => { | |
return { | |
type: 'UPDATE_STATS' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment