Skip to content

Commit

Permalink
fix(frontend): fix count of requests in request list
Browse files Browse the repository at this point in the history
  • Loading branch information
sct committed Dec 28, 2020
1 parent 8af6a1f commit f124d73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/RequestList/index.tsx
Expand Up @@ -63,7 +63,7 @@ const RequestList: React.FC = () => {
<tr>
<Table.TD colSpan={6} noPadding>
<nav
className="bg-gray-700 px-4 py-3 flex items-center justify-between text-white sm:px-6"
className="flex items-center justify-between px-4 py-3 text-white bg-gray-700 sm:px-6"
aria-label="Pagination"
>
<div className="hidden sm:block">
Expand All @@ -73,15 +73,15 @@ const RequestList: React.FC = () => {
to:
data.results.length < 10
? pageIndex * 10 + data.results.length
: pageIndex + 1 * 10,
: (pageIndex + 1) * 10,
total: data.pageInfo.results,
strong: function strong(msg) {
return <span className="font-medium">{msg}</span>;
},
})}
</p>
</div>
<div className="flex-1 flex justify-start sm:justify-end">
<div className="flex justify-start flex-1 sm:justify-end">
<span className="mr-2">
<Button
disabled={!hasPrevPage}
Expand Down

0 comments on commit f124d73

Please sign in to comment.