update to the bins page for the new scroll
This commit is contained in:
parent
d4bd6941d4
commit
ac5300a664
1 changed files with 6 additions and 6 deletions
|
|
@ -643,11 +643,11 @@ export default function Bins(props: Props) {
|
|||
bins={fertilizerBins}
|
||||
duplicateBin={duplicateBin}
|
||||
title={"Fertilizer Bins"}
|
||||
startingTranslate={scrollTranslations.fertilizer}
|
||||
loadMore={newTranslation => {
|
||||
//startingTranslate={scrollTranslations.fertilizer}
|
||||
loadMore={() => {
|
||||
if (paginatedBins.bins.length < paginatedBins.binsTotal) {
|
||||
loadMoreBins(contentFilter, paginatedBins.binsOffset);
|
||||
setScrollTranslations({ ...scrollTranslations, fertilizer: newTranslation });
|
||||
//setScrollTranslations({ ...scrollTranslations, fertilizer: newTranslation });
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
|
@ -666,11 +666,11 @@ export default function Bins(props: Props) {
|
|||
bins={emptyBins}
|
||||
duplicateBin={duplicateBin}
|
||||
title={"Empty Bins"}
|
||||
startingTranslate={scrollTranslations.empty}
|
||||
loadMore={newTranslation => {
|
||||
//startingTranslate={scrollTranslations.empty}
|
||||
loadMore={() => {
|
||||
if (paginatedBins.bins.length < paginatedBins.binsTotal) {
|
||||
loadMoreBins(contentFilter, paginatedBins.binsOffset);
|
||||
setScrollTranslations({ ...scrollTranslations, empty: newTranslation });
|
||||
//setScrollTranslations({ ...scrollTranslations, empty: newTranslation });
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue