this.setHover(true)}
onMouseLeave={() => this.setHover(false)}
>
{table.name}
{table.isMetadataLoading || table.isExtraMetadataLoading ? (
) : (
e.stopPropagation()}
>
{this.renderControls()}
)}
);
}
renderBody() {
const { table } = this.props;
let cols;
if (table.columns) {
cols = table.columns.slice();
if (this.state.sortColumns) {
cols.sort((a, b) => {
const colA = a.name.toUpperCase();
const colB = b.name.toUpperCase();
if (colA < colB) {
return -1;
}
if (colA > colB) {
return 1;
}
return 0;
});
}
}
const metadata = (
this.setHover(true)}
onMouseLeave={() => this.setHover(false)}
css={{ paddingTop: 6 }}
>
{this.renderWell()}
{cols &&
cols.map(col => )}
);
return metadata;
}
render() {
return (