blob: 75e3a1d8a9692ba6dd6b44916aa801dff41a0805 (
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
39
|
//
// The provider setup wizard
//
import React from 'react'
import App from 'app'
import ProviderSelectStage from './provider_select_stage'
import RegisterStage from './register_stage'
import './wizard.less'
export default class Wizard extends React.Component {
static get defaultProps() {return{
stage: "provider"
}}
constructor(props) {
super(props)
}
render() {
let stage = null
switch(this.props.stage) {
case 'provider':
stage = <ProviderSelectStage {...this.props}/>
break
case 'register':
stage = <RegisterStage {...this.props}/>
break
}
return(
<div className="wizard">
{stage}
</div>
)
}
}
|