1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00
onion/js/components/ascribe_forms/button_submit_close.js
ddejongh 7a18c150c7 merged all branches
fixed clear errors
2015-05-29 10:58:07 +02:00

22 lines
610 B
JavaScript

import React from 'react';
let ButtonSubmitOrClose = React.createClass({
render() {
if (this.props.submitted){
//return (
// <div className="modal-footer">
// Loading
// </div>
//)
}
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>
)
}
});
export default ButtonSubmitOrClose;