feat: some code splitting

This commit is contained in:
TrèsAbhi committed 2024-05-22 13:43:08 -05:00
1 parent 5f47218f16
commit 6b63231194
5 files changed
+18 -7

No files matched your search

@@ -400,7 +400,6 @@ export function TankSearch({
page * tanksPerPage,
(page + 1) * tanksPerPage,
);
useEffect(() => {
mutateTankopediaPersistent((draft) => {
@@ -853,7 +852,11 @@ export function TankSearch({
<PageTurner tanksPerPage={tanksPerPage} searchedList={searchResults} />
)}
<Results compact={compact} results={searchResultsPageSlice} />
<Results
compact={compact}
results={searchResultsPageSlice}
onSelect={onSelect}
/>
{searchResultsPageSlice.length > tanksPerPage / 4 && (
<PageTurner tanksPerPage={tanksPerPage} searchedList={searchResults} />