Skip to content

Pool Overview redesign #3570

Pool Overview redesign

Pool Overview redesign #3570

Triggered via pull request September 16, 2024 19:41
Status Failure
Total duration 1m 37s
Artifacts

centrifuge-app.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 11 warnings
build-app
Property 'investorType' is missing in type '{ id: string; createdAt: null; metadata: string; currency: CurrencyMetadata; tranches: { id: string; index: number; seniority: number; tokenPrice: Price; poolCurrency: CurrencyMetadata; ... 11 more ...; balance: TokenBalance; }[]; ... 4 more ...; value: CurrencyBalance; }' but required in type 'Omit<Pool, "fees">'.
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/Charts/PoolPerformanceChart.tsx#L148
React Hook React.useMemo has unnecessary dependencies: 'isSingleTranche' and 'todayPrice'. Either exclude them or remove the dependency array
build-app: centrifuge-app/src/components/Charts/PoolPerformanceChart.tsx#L186
React Hook React.useMemo has an unnecessary dependency: 'selectedTabIndex'. Either exclude it or remove the dependency array
build-app: centrifuge-app/src/components/Charts/PoolPerformanceChart.tsx#L479
Array.prototype.map() expects a return value from arrow function
build-app: centrifuge-app/src/components/IssuerSection.tsx#L45
'cent' is assigned a value but never used
build-app: centrifuge-app/src/components/PoolList.tsx#L54
React Hook React.useMemo has missing dependencies: 'cent' and 'centPoolsMetaDataById'. Either include them or remove the dependency array
build-app: centrifuge-app/src/components/PoolOverview/KeyMetrics.tsx#L104
React Hook useMemo has a missing dependency: 'pool.currency.decimals'. Either include it or remove the dependency array
build-app: centrifuge-app/src/components/PoolOverview/TrancheTokenCards.tsx#L42
The 'columnConfig' array makes the dependencies of useMemo Hook (at line 87) change on every render. Move it inside the useMemo callback. Alternatively, wrap the initialization of 'columnConfig' in its own useMemo() Hook
build-app: centrifuge-app/src/components/PoolOverview/TrancheTokenCards.tsx#L114
'TrancheTokenCard' is assigned a value but never used
build-app: centrifuge-app/src/components/PoolOverview/TrancheTokenCards.tsx#L175
React Hook useMemo has a missing dependency: 'poolCurrencySymbol'. Either include it or remove the dependency array
build-app: centrifuge-app/src/components/PoolOverview/TrancheTokenCards.tsx#L177
'tableData' is assigned a value but never used