Skip to content

Commit

Permalink
Merge pull request #69 from QuickSwap/issue/fix-load-whitelist-tokens
Browse files Browse the repository at this point in the history
refactor: Improve scroll event lag
  • Loading branch information
AamirAlam authored Feb 4, 2022
2 parents 02c9349 + 6fb649c commit 895fbed
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/CurrencySearchModal/CurrencyRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ const CurrencyRow: React.FC<CurrenyRowProps> = ({
}}
>
<Box className={classes.currencyRow}>
{console.log('perfTest: row rendered ')}
{(otherSelected || isSelected) && <TokenSelectedIcon />}
<CurrencyLogo currency={currency} size={'32px'} />
<Box ml={1} height={32}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/DragonPage/DragonsSyrup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const useStyles = makeStyles(({ palette, breakpoints }) => ({
},
}));

const LOADSYRUP_COUNT = 5;
const LOADSYRUP_COUNT = 10;
const TOKEN_COLUMN = 1;
const DEPOSIT_COLUMN = 2;
const APR_COLUMN = 3;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/FarmPage/FarmPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const useStyles = makeStyles(({ palette, breakpoints }) => ({
},
}));

const LOADFARM_COUNT = 6;
const LOADFARM_COUNT = 10;
const POOL_COLUMN = 1;
const TVL_COLUMN = 2;
const REWARDS_COLUMN = 3;
Expand Down
1 change: 1 addition & 0 deletions src/utils/useInfiniteLoading.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const useInfiniteLoading = (loadNext: () => void) => {
onChange: () => {
loadNext();
},
rootMargin: '100px 0px 600px 0px',
});

return {
Expand Down

0 comments on commit 895fbed

Please sign in to comment.