Fixed use of redux action
This commit is contained in:
parent
8c3335094a
commit
b556441459
7 changed files with 94 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
import { ADD_ARTICLE } from "../constants/action-types"
|
||||
|
||||
export function addArticle(payload) {
|
||||
return { type: "ADD_ARTICLE", payload }
|
||||
return { type: ADD_ARTICLE, payload }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue