       text = children
 
     <BS.Button {...@props}
-      className={[stateClass, className]}
+      className={[buttonTypeClass, stateClass, className]}
       disabled={disabled}
       >
         {spinner}

React = require 'react'
BS = require 'react-bootstrap'
RefreshButton = require './refresh-button'

module.exports = React.createClass
  displayName: 'AsyncButton'

  propTypes:
    isWaiting: React.PropTypes.bool.isRequired

    failedState: React.PropTypes.func
    failedProps: React.PropTypes.object
    doneText: React.PropTypes.any
    timeout: React.PropTypes.number

  getDefaultProps: ->
    isDone: false
