components/landing/topCollections/utils/useTopCollections.ts
Function useTopCollections
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useTopCollections = (limit: number, immediate = true) => {
const { client, urlPrefix } = usePrefix()
const { isAssetHub, isBase } = useIsChain(urlPrefix)
const topCollectionWithVolumeList = useState<CollectionEntityWithVolumes[]>(
'topCollectionWithVolumeList',
Function proccessData
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const proccessData = (
collectionsList: CollectionEntity[],
collectionsSales: CollectionSales[],
) => {
return Promise.all(