2015-06-05 11:06:36 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-05-29 01:54:56 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
2015-06-05 11:06:36 +02:00
|
|
|
/*
|
|
|
|
Is this even used somewhere?
|
|
|
|
Deprecate? 5.6.15 - Tim
|
|
|
|
|
|
|
|
*/
|
2015-05-29 01:54:56 +02:00
|
|
|
let ButtonSubmitOrClose = React.createClass({
|
|
|
|
render() {
|
|
|
|
if (this.props.submitted){
|
2015-06-03 10:27:11 +02:00
|
|
|
return (
|
|
|
|
<div className="modal-footer">
|
|
|
|
<img src="https://s3-us-west-2.amazonaws.com/ascribe0/media/thumbnails/ascribe_animated_medium.gif" />
|
|
|
|
</div>
|
|
|
|
)
|
2015-05-29 01:54:56 +02:00
|
|
|
}
|
|
|
|
return (
|
|
|
|
<div className="modal-footer">
|
|
|
|
<button type="submit" className="btn btn-ascribe-inv">{this.props.text}</button>
|
|
|
|
<button className="btn btn-ascribe-inv" onClick={this.props.onClose}>CLOSE</button>
|
|
|
|
</div>
|
2015-06-05 11:06:36 +02:00
|
|
|
);
|
2015-05-29 01:54:56 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default ButtonSubmitOrClose;
|