Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alnasir7 committed Mar 5, 2021
1 parent 45cb513 commit 6eb0b83
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
14 changes: 9 additions & 5 deletions frontend/components/common/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,24 +318,26 @@ const Table = ({
})}
</tbody>
</table>
) : (
) : data.length === 0 ? ( <h1>No items to show</h1> ) : (
<h1>No matches were found. Please change your filters.</h1>
)}
{pageOptions.length > 1 && (
<div className="is-clearfix">
<button
style={{ marginRight: '0.5rem' }}
className="is-light is-small"
onClick={() => gotoPage(0)}
disabled={!canPreviousPage}
>
<Icon name="chevrons-left" />
{'<<'}
</button>
<button
style={{ marginRight: '0.5rem' }}
className="is-light is-small"
onClick={() => previousPage()}
disabled={!canPreviousPage}
>
<Icon name="chevron-left" />
{'<'}
</button>
<select
value={pageIndex}
Expand All @@ -351,17 +353,19 @@ const Table = ({
</select>
<button
style={{ marginRight: '0.5rem' }}
className="is-light is-small"
onClick={() => nextPage()}
disabled={!canNextPage}
>
<Icon name="chevron-right" />
{'>'}
</button>
<button
style={{ marginRight: '0.5rem' }}
className="is-light is-small"
onClick={() => gotoPage(pageCount - 1)}
disabled={!canNextPage}
>
<Icon name="chevrons-right" />
{'>>'}
</button>
<div className="is-pulled-right">
<span>
Expand Down
4 changes: 0 additions & 4 deletions frontend/public/static/img/icons/arrow-vertical.svg

This file was deleted.

1 change: 0 additions & 1 deletion frontend/public/static/img/icons/chevron-left.svg

This file was deleted.

1 change: 0 additions & 1 deletion frontend/public/static/img/icons/chevron-right.svg

This file was deleted.

0 comments on commit 6eb0b83

Please sign in to comment.