Created
September 4, 2020 21:37
-
-
Save jinwook-k/6f210c24175dbf6c1aaf95f0a3dd0ab7 to your computer and use it in GitHub Desktop.
client/src/actions
This file contains hidden or 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
export const saveZipCode = (zipCode) => { | |
return { | |
type: "SAVE_ZIP", | |
payload: zipCode | |
} | |
} | |
export const saveWeatherData = (data) => { | |
return { | |
type: "SAVE_WEATHER_DATA", | |
payload: data | |
} | |
} | |
export const saveTemperature = (data) => { | |
return { | |
type: "SAVE_TEMPERATURE", | |
payload: data | |
} | |
} | |
export const updateHistory = (data) => { | |
return { | |
type: "UPDATE_HISTORY", | |
payload: data | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment