Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1129 | Rev 1134 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1118 stevensc 1
import { TOPIC_ACTIONS } from './topics.types'
2
 
3
export const addTopic = (topic) => ({
4
  type: TOPIC_ACTIONS.ADD_TOPIC,
5
  payload: topic
6
})
7
 
8
export const addCapsule = (topicId, capsule) => ({
9
  type: TOPIC_ACTIONS.ADD_CAPSULE,
10
  payload: {
11
    topicId,
12
    capsule
13
  }
14
})
1126 stevensc 15
 
1133 stevensc 16
export const completeSlide = (uuid) => ({
17
  type: TOPIC_ACTIONS.COMPLETE_SLIDE,
18
  payload: uuid
1126 stevensc 19
})
1133 stevensc 20
 
21
export const completeCapsule = (uuid) => ({
22
  type: TOPIC_ACTIONS.COMPLETE_CAPSULE,
23
  payload: uuid
24
})
25
 
26
export const completeTopic = (uuid) => ({
27
  type: TOPIC_ACTIONS.ADD_TOPIC,
28
  payload: uuid
29
})