22 lines
717 B
JavaScript
22 lines
717 B
JavaScript
// The input "conversation" is composed of "steps"
|
|
// The state keeps track of which of them have been submitted
|
|
// The user can also come back to one of his answers and edit it
|
|
export const STEP_ACTION = 'STEP_ACTION'
|
|
export function stepAction(name, step, source) {
|
|
return { type: STEP_ACTION, name, step, source }
|
|
}
|
|
|
|
export function setExample(name, situation) {
|
|
return { type: 'SET_EXAMPLE', situation, name }
|
|
}
|
|
|
|
export const START_CONVERSATION = 'START_CONVERSATION'
|
|
|
|
export const CHANGE_THEME_COLOUR = 'CHANGE_THEME_COLOUR'
|
|
export function changeThemeColour(colour) {
|
|
return { type: CHANGE_THEME_COLOUR, colour }
|
|
}
|
|
|
|
export const EXPLAIN_VARIABLE = 'EXPLAIN_VARIABLE'
|
|
export const CHANGE_LANG = 'CHANGE_LANG'
|