Assets page redesign #3770
Annotations
2 errors and 11 warnings
Lint:
centrifuge-app/src/components/LoanList.tsx#L369
React Hook "usePool" is called in function "getAmount" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
|
Lint
Process completed with exit code 1.
|
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/
|
Lint:
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
|
Lint:
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
|
Lint:
centrifuge-app/src/components/LoanList.tsx#L100
React Hook React.useMemo has an unnecessary dependency: 'isTinlakePool'. Either exclude it or remove the dependency array
|
Lint:
centrifuge-app/src/components/LoanList.tsx#L258
React Hook React.useMemo has an unnecessary dependency: 'pool.currency'. Either exclude it or remove the dependency array
|
Lint:
centrifuge-app/src/components/PoolCard/index.tsx#L164
The 'calculateApy' function makes the dependencies of useMemo Hook (at line 202) change on every render. Move it inside the useMemo callback. Alternatively, wrap the definition of 'calculateApy' in its own useCallback() Hook
|
Lint:
centrifuge-app/src/components/PoolList.tsx#L45
'isLarge' is assigned a value but never used
|
Lint:
centrifuge-app/src/components/PoolList.tsx#L46
'isMedium' is assigned a value but never used
|
Lint:
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
|
Lint:
centrifuge-app/src/components/PoolOverview/TrancheTokenCards.tsx#L149
React Hook useMemo has a missing dependency: 'calculateApy'. Either include it or remove the dependency array
|
Lint:
centrifuge-app/src/components/Portfolio/Transactions.tsx#L47
'theme' is assigned a value but never used
|
Loading