Skip to content

Commit 20f694a

Browse files
authored
Center aligned the pagination on Results page Issue#2680 (ohcnetwork#2684)
1 parent c4e6b6b commit 20f694a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Components/ExternalResult/ResultList.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export default function ResultList() {
6161
wardList: [],
6262
});
6363
let manageResults: any = null;
64+
let pagination: any = null;
6465
const local = JSON.parse(localStorage.getItem("external-filters") || "{}");
6566
const localLsgWard = JSON.parse(
6667
localStorage.getItem("lsg-ward-data") ||
@@ -332,11 +333,11 @@ export default function ResultList() {
332333
</tr>
333334
);
334335
} else if (data && data.length) {
335-
manageResults = (
336+
manageResults = <>{resultList}</>;
337+
pagination = (
336338
<>
337-
{resultList}
338339
{totalCount > RESULT_LIMIT && (
339-
<div className="mt-4 flex w-full justify-center">
340+
<div className="mt-4 w-full flex justify-center items-center">
340341
<Pagination
341342
cPage={qParams.page}
342343
defaultPerPage={RESULT_LIMIT}
@@ -517,6 +518,7 @@ export default function ResultList() {
517518
{manageResults}
518519
</tbody>
519520
</table>
521+
<div className="bg-white divide-y divide-gray-200">{pagination}</div>
520522
</div>
521523
<CSVLink
522524
data={downloadFile}

0 commit comments

Comments
 (0)