mirror of
https://github.com/ascribe/onion.git
synced 2024-12-24 18:36:10 +01:00
28 lines
737 B
JavaScript
28 lines
737 B
JavaScript
|
'use strict';
|
||
|
|
||
|
import React from 'react';
|
||
|
|
||
|
let ButtonSubmitOrClose = React.createClass({
|
||
|
propTypes: {
|
||
|
submitted: React.PropTypes.bool.isRequired,
|
||
|
text: React.PropTypes.string.isRequired
|
||
|
},
|
||
|
|
||
|
render() {
|
||
|
if (this.props.submitted){
|
||
|
return (
|
||
|
<div className="modal-footer">
|
||
|
<img src="https://s3-us-west-2.amazonaws.com/ascribe0/media/thumbnails/ascribe_animated_medium.gif" />
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
return (
|
||
|
<div className="modal-footer">
|
||
|
<button type="submit" className="btn btn-ascribe-inv">{this.props.text}</button>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
export default ButtonSubmitOrClose;
|