Clean up
This commit is contained in:
parent
abdda1e8d0
commit
5c7411594f
15 changed files with 5 additions and 64 deletions
22
src/actions/index.js
Normal file
22
src/actions/index.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
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" }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue