import React from 'react'; import {observer, inject} from 'mobx-react'; import {Dialog, FlatButton, RaisedButton, Step, StepLabel, Stepper} from "material-ui"; import {DIALOG} from "../../stores/global_ui"; import Form from './WithdrawForm'; import Review from './WithdrawReview'; import get from 'lodash.get'; @inject('appstate') @observer export default class WithdrawDialogComponent extends React.Component { constructor(props) { super(props); this.props = props; this.globalUI = props.appstate.globalUI; this.withdraw = props.appstate.withdraw; this.bankStore = props.appstate.bank; this.transactionStore = props.appstate.transaction; this.state = { currentStep: 0, openedDialog: false, nextButtonText: 'Next', backButtonText: 'Cancel', formData: {}, steps: [ { label: 'Withdraw Form', // action: () => this.validateName(), component: