Commit 3845eb27 authored by timel's avatar timel

fix: show pagination on command

parent b183adc7
Pipeline #23045 passed with stages
in 17 minutes and 51 seconds
...@@ -458,20 +458,22 @@ const SearchResults: React.FC<{ ...@@ -458,20 +458,22 @@ const SearchResults: React.FC<{
/> />
))} ))}
</div> </div>
<div style={{ textAlign: "center", padding: "10px 0 20px" }}> {results.length > itemsPerPage && (
<Pagination <div style={{ textAlign: "center", padding: "10px 0 20px" }}>
current={currentPage} <Pagination
onChange={(page) => { current={currentPage}
setCurrentPage(page); onChange={(page) => {
scrollToTop(); setCurrentPage(page);
}} scrollToTop();
total={results.length} }}
pageSize={itemsPerPage} total={results.length}
showSizeChanger={false} pageSize={itemsPerPage}
showLessItems showSizeChanger={false}
hideOnSinglePage showLessItems
/> hideOnSinglePage
</div> />
</div>
)}
</> </>
); );
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment