mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
c3ea9aecbe
- inputtext, area, btn - alertmixin - formmixin - 500 - transfer/share
22 lines
600 B
JavaScript
22 lines
600 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;
|