1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-03-12 21:48:39 +01:00
ipfs-boards/src/actions/comment.js

32 lines
673 B
JavaScript
Raw Normal View History

2018-03-06 18:24:39 +01:00
import { HIDE_COMMENT, ADD_COMMENT, EDIT_COMMENT } from './actionTypes'
export function addComment(address, postId, comment, replyTo = 'post') {
return {
type: ADD_COMMENT,
address,
postId,
comment,
replyTo
}
}
export function editComment(address, postId, commentId, comment, replyTo = 'post') {
return {
type: EDIT_COMMENT,
address,
postId,
commentId,
comment,
replyTo
}
}
export function hideComment(address, postId, commentId, replyTo = 'post') {
return {
type: HIDE_COMMENT,
address,
postId,
commentId,
replyTo
}
}