Skip to content

Instantly share code, notes, and snippets.

@gyver98 gyver98/index.js
Created Mar 18, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.