Rev 1129 | Rev 1134 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import { TOPIC_ACTIONS } from './topics.types'
export const addTopic = (topic) => ({
type: TOPIC_ACTIONS.ADD_TOPIC,
payload: topic
})
export const addCapsule = (topicId, capsule) => ({
type: TOPIC_ACTIONS.ADD_CAPSULE,
payload: {
topicId,
capsule
}
})
export const completeSlide = (uuid) => ({
type: TOPIC_ACTIONS.COMPLETE_SLIDE,
payload: uuid
})
export const completeCapsule = (uuid) => ({
type: TOPIC_ACTIONS.COMPLETE_CAPSULE,
payload: uuid
})
export const completeTopic = (uuid) => ({
type: TOPIC_ACTIONS.ADD_TOPIC,
payload: uuid
})