Assets page redesign #3743
Annotations
5 errors and 11 warnings
build-app:
centrifuge-app/src/pages/Loan/index.tsx#L64
React Hook "useCanBorrowAsset" is called conditionally. React Hooks must be called in the exact same order in every component render
|
build-app:
centrifuge-app/src/pages/Loan/index.tsx#L65
React Hook "React.useState" is called conditionally. React Hooks must be called in the exact same order in every component render
|
build-app:
centrifuge-app/src/pages/Loan/index.tsx#L66
React Hook "React.useState" is called conditionally. React Hooks must be called in the exact same order in every component render
|
build-app:
centrifuge-app/src/pages/Loan/index.tsx#L67
React Hook "React.useState" is called conditionally. React Hooks must be called in the exact same order in every component render
|
build-app
Process completed with exit code 1.
|
build-app
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c, actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build-app:
centrifuge-app/src/components/InvestRedeem/InvestRedeemCentrifugeProvider.tsx#L100
React Hook React.useEffect has a missing dependency: 'connectedType'. Either include it or remove the dependency array
|
build-app:
centrifuge-app/src/components/InvestRedeem/InvestRedeemDrawer.tsx#L77
React Hook React.useMemo has a missing dependency: 'pool.currency.decimals'. Either include it or remove the dependency array
|
build-app:
centrifuge-app/src/components/LoanList.tsx#L78
React Hook React.useMemo has an unnecessary dependency: 'isTinlakePool'. Either exclude it or remove the dependency array
|
build-app:
centrifuge-app/src/components/PoolCard/index.tsx#L162
The 'calculateApy' function makes the dependencies of useMemo Hook (at line 200) change on every render. Move it inside the useMemo callback. Alternatively, wrap the definition of 'calculateApy' in its own useCallback() Hook
|
build-app:
centrifuge-app/src/components/PoolList.tsx#L45
'isLarge' is assigned a value but never used
|
build-app:
centrifuge-app/src/components/PoolList.tsx#L46
'isMedium' is assigned a value but never used
|
build-app:
centrifuge-app/src/components/PoolList.tsx#L122
'isMedium' is assigned a value but never used
|
build-app:
centrifuge-app/src/components/PoolList.tsx#L123
'isLarge' is assigned a value but never used
|
build-app:
centrifuge-app/src/components/PoolOverview/TrancheTokenCards.tsx#L135
React Hook useMemo has a missing dependency: 'pool?.currency.symbol'. Either include it or remove the dependency array
|
build-app:
centrifuge-app/src/components/PoolOverview/TrancheTokenCards.tsx#L149
React Hook useMemo has a missing dependency: 'calculateApy'. Either include it or remove the dependency array
|