Rev 1133 | Rev 1146 | 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 addSlide = (capsuleId, slide) => ({type: TOPIC_ACTIONS.ADD_SLIDE,payload: {capsuleId,slide}})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})