mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
23 lines
554 B
JavaScript
23 lines
554 B
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
|
|
let TableItemSubtableButton = React.createClass({
|
|
|
|
propTypes: {
|
|
content: React.PropTypes.string.isRequired,
|
|
onClick: React.PropTypes.func.isRequired
|
|
},
|
|
|
|
render() {
|
|
return (
|
|
<span>
|
|
<button type="button" className="btn btn-default btn-sm ascribe-table-expand-button" onClick={this.props.onClick}>
|
|
{this.props.content}
|
|
</button>
|
|
</span>
|
|
);
|
|
}
|
|
});
|
|
|
|
export default TableItemSubtableButton; |