import React, { PropTypes, Component } from 'react' export default class SaveButton extends Component{ constructor(props){ super(props) } btnDisabled(){ return !this.props.status.fetchSuccess || this.props.status.isFetching } btnClass(){ let className = ['btn btn-default'] if(this.btnDisabled()){ className.push('disabled') } return className.join(' ') } render() { if (!this.hasPolicy()) { return false }else{ return (
{e.preventDefault()}}>
) } } }