Created TagCard test

This commit is contained in:
Alejandro Celaya
2018-11-01 13:34:31 +01:00
parent 53132fa900
commit 85cb849ba5
3 changed files with 59 additions and 35 deletions

View File

@@ -115,23 +115,17 @@ export class ShortUrlsListComponent extends React.Component {
));
}
renderMobileOrderingControls() {
return (
<div className="d-block d-md-none mb-3">
<SortingDropdown
items={SORTABLE_FIELDS}
orderField={this.state.orderField}
orderDir={this.state.orderDir}
onChange={this.handleOrderBy}
/>
</div>
);
}
render() {
return (
<React.Fragment>
{this.renderMobileOrderingControls()}
<div className="d-block d-md-none mb-3">
<SortingDropdown
items={SORTABLE_FIELDS}
orderField={this.state.orderField}
orderDir={this.state.orderDir}
onChange={this.handleOrderBy}
/>
</div>
<table className="table table-striped table-hover">
<thead className="short-urls-list__header">
<tr>