import React from 'react' import {Button, ButtonGroup, ButtonToolbar, Glyphicon, Tabs, Tab} from 'react-bootstrap' import App from 'app' import Provider from 'models/provider' import Login from 'components/login' import Center from 'components/center' import StageLayout from './stage_layout' export default class RegisterStage extends React.Component { static get defaultProps() {return{ provider: null }} constructor(props) { super(props) this.state = { activeTab: 'signup', // either 'login' or 'signup' error: null // error message } // this.add = this.add.bind(this) // this.remove = this.remove.bind(this) // this.select = this.select.bind(this) this.selectTab = this.selectTab.bind(this) this.previous = this.previous.bind(this) this.cancel = this.cancel.bind(this) this.login = this.login.bind(this) } previous() { App.show('wizard', { stage: 'provider', initialProvider: this.props.provider }) } cancel() { App.start() } login(account) { App.show('main', {initialAccount: account}) } selectTab(key) { this.setState({ activeTab: key }) } render() { let buttons = (
) return(
) } }