Skip to content

Commit

Permalink
update farms list
Browse files Browse the repository at this point in the history
  • Loading branch information
3mp8r3 committed Feb 5, 2022
1 parent a02509e commit 497423e
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions src/pages/FarmPage/FarmsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -488,36 +488,36 @@ const FarmsList: React.FC<FarmsListProps> = ({ bulkPairs, farmIndex }) => {
</Box>
)}
{farmIndex === GlobalConst.farmIndex.LPFARM_INDEX &&
stakingInfos &&
stakingInfos &&
!pageloading ? (
stakingInfos.map((info: StakingInfo, index) => (
<FarmLPCard
key={index}
dQuicktoQuick={Number(lairInfo.dQUICKtoQUICK.toSignificant())}
stakingInfo={info}
stakingAPY={stakingAPYs[index]}
/>
))
) : farmIndex === GlobalConst.farmIndex.DUALFARM_INDEX &&
stakingDualInfos &&
!pageloading ? (
stakingInfos.map((info: StakingInfo, index) => (
<FarmLPCard
key={index}
dQuicktoQuick={Number(lairInfo.dQUICKtoQUICK.toSignificant())}
stakingInfo={info}
stakingAPY={stakingAPYs[index]}
/>
))
) : farmIndex === GlobalConst.farmIndex.DUALFARM_INDEX &&
stakingDualInfos &&
!pageloading ? (
stakingDualInfos.map((info: DualStakingInfo, index) => (
<FarmDualCard
key={index}
dQuicktoQuick={Number(lairInfo.dQUICKtoQUICK.toSignificant())}
stakingInfo={info}
stakingAPY={stakingAPYs[index]}
/>
))
) : (
<>
<Skeleton width='100%' height={100} />
<Skeleton width='100%' height={100} />
<Skeleton width='100%' height={100} />
<Skeleton width='100%' height={100} />
<Skeleton width='100%' height={100} />
</>
)}
stakingDualInfos.map((info: DualStakingInfo, index) => (
<FarmDualCard
key={index}
dQuicktoQuick={Number(lairInfo.dQUICKtoQUICK.toSignificant())}
stakingInfo={info}
stakingAPY={stakingAPYs[index]}
/>
))
) : (
<>
<Skeleton width='100%' height={100} />
<Skeleton width='100%' height={100} />
<Skeleton width='100%' height={100} />
<Skeleton width='100%' height={100} />
<Skeleton width='100%' height={100} />
</>
)}
<div ref={loadMoreRef} />
</>
);
Expand Down

0 comments on commit 497423e

Please sign in to comment.