x-weather
Version:
A collection of web components implementing portions of the OpenWeatherMap API.
7 lines (4 loc) • 427 B
JavaScript
import { LOCATION_UPDATE, PRIMARY_SCALE_CURRENT_SWAP, PRIMARY_SCALE_FORECAST_SWAP } from '../types'
export const swapPrimaryScaleCurrent = primaryScale => ({ type: PRIMARY_SCALE_CURRENT_SWAP, payload: primaryScale })
export const swapPrimaryScaleForecast = primaryScale => ({ type: PRIMARY_SCALE_FORECAST_SWAP, payload: primaryScale })
export const updateLocation = location => ({ type: LOCATION_UPDATE, payload: location })