Fixing code formatting issues in DataTable components.

feature/appm-store/pbac
Menaka Jayawardena 7 years ago
parent a37cdbdbdd
commit 73e820b78e

@ -54,18 +54,12 @@ class DataTable extends Component {
this.scriptId = "data-table" this.scriptId = "data-table"
}; };
/**
* Triggers when user click on table row.
* This method invokes the parent method handleRowClick, which is passed via props.
* */
render() { render() {
return ( return (
<div className="data-table"> <div className="data-table">
{this.props.children} {this.props.children}
</div> </div>
) )
} }
} }

@ -56,10 +56,6 @@ class DataTableHeader extends Component {
} }
render() { render() {
/*margin-top: 30px
* margin-bottom: 10px
* */
return ( return (
<Row className="data-table-header"> <Row className="data-table-header">
{this.props.headers.map(header => { {this.props.headers.map(header => {

@ -44,7 +44,6 @@ class HeaderCell extends Component {
componentWillUnmount() { componentWillUnmount() {
Theme.removeThemingScripts(this.scriptId); Theme.removeThemingScripts(this.scriptId);
} }
/** /**
@ -56,10 +55,6 @@ class HeaderCell extends Component {
} }
render() { render() {
/*margin-top: 30px
* margin-bottom: 10px
* */
return ( return (
<Row className="data-table-header"> <Row className="data-table-header">
{this.props.headers.map(header => { {this.props.headers.map(header => {

Loading…
Cancel
Save