summaryrefslogtreecommitdiff
path: root/www/app/components/wizard/index.js
blob: 613b88fd875540c8bf82e79d481cc8721544e47b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// The provider setup wizard
//

import React from 'react'
import App from 'app'

import ProviderSelectStage from './provider_select_stage'
import './wizard.less'

export default class Wizard extends React.Component {

  constructor(props) {
    super(props)
    this.state = {
      stage: 'provider'
    }
  }

  setStage(stage) {
    this.setState({stage: stage})
  }

  render() {
    let stage = null
    switch(this.state.stage) {
      case 'provider':
        stage = <ProviderSelectStage />
        break
    }
    return(
      <div className="wizard">
        {stage}
      </div>
    )
  }

}