Exemplo n.º 1
0
export const Step1 = sources => {
  const aq = AnswerQuestion(sources)

  const li = StepListItem({...sources,
    title$: $.just('Step 1: Answer the Question'),
    contentDOM$: aq.DOM,
    isOpen$: sources.engagement$.map(({answer}) => !answer),
  })

  return {
    ...li,
    queue$: aq.queue$,
  }
}
Exemplo n.º 2
0
export const Step2 = sources => {
  const pt = ChooseTeams(sources)

  const li = StepListItem({...sources,
    title$: $.just('Step 2: Pick Some Teams'),
    contentDOM$: pt.DOM,
    isOpen$: sources.engagement$.map(({answer}) => !!answer),
  })

  return {
    ...li,
    queue$: pt.queue$,
    route$: pt.route$,
  }
}
Exemplo n.º 3
0
export const Step2 = sources => {
  const pt = ChooseTeams({...sources,
    isOpen$: null,
  })

  const li = StepListItem({...sources,
    title$: $.just('Step 2: Pick Some Teams'),
    contentDOM$: pt.DOM,
  })

  return {
    ...li,
    queue$: pt.queue$,
    route$: pt.route$,
  }
}