This commit is contained in:
Rodrigo Pedroso 2019-06-22 21:57:18 -04:00
commit 5c7411594f
15 changed files with 5 additions and 64 deletions

View file

@ -1,22 +0,0 @@
import { ADD_ARTICLE } from "../constants/action-types"
import { SET_CANDIDATE } from "../constants/action-types"
export function setCandidate(payload) {
return { type: SET_CANDIDATE, payload }
}
export function addArticle(payload) {
return { type: ADD_ARTICLE, payload }
}
export function getData() {
return { type: "DATA_REQUESTED" }
}
export function getTrumpData() {
return { type: "DATA_TRUMP_REQUESTED" }
}
export function getHillaryData() {
return { type: "DATA_HILLARY_REQUESTED" }
}