Created ShortUrlsRow test

This commit is contained in:
Alejandro Celaya
2019-01-13 09:49:02 +01:00
parent 1aa1d29d97
commit 30b4cb4068
7 changed files with 120 additions and 18 deletions

View File

@@ -14,7 +14,7 @@ import './ShortUrlsList.scss';
const SORTABLE_FIELDS = {
dateCreated: 'Created at',
shortCode: 'Short URL',
originalUrl: 'Long URL',
longUrl: 'Long URL',
visits: 'Visits',
};
@@ -142,9 +142,9 @@ const ShortUrlsList = (ShortUrlsRow) => class ShortUrlsList extends React.Compon
</th>
<th
className="short-urls-list__header-cell short-urls-list__header-cell--with-action"
onClick={this.orderByColumn('originalUrl')}
onClick={this.orderByColumn('longUrl')}
>
{this.renderOrderIcon('originalUrl')}
{this.renderOrderIcon('longUrl')}
Long URL
</th>
<th className="short-urls-list__header-cell">Tags</th>