Skip to content

refactor(catalog): introduce usePathname hook, remove React Router dependency from the Catalog #2148

refactor(catalog): introduce usePathname hook, remove React Router dependency from the Catalog

refactor(catalog): introduce usePathname hook, remove React Router dependency from the Catalog #2148

Triggered via pull request November 26, 2024 13:06
Status Failure
Total duration 4m 20s
Artifacts

checks.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 10 warnings
ts-check: app/scripts/components/exploration/components/dataset-selector-modal/index.tsx#L130
Type '{ datasets: DatasetData[]; search: string; taxonomies: Record<string, never> | Record<string, string[]>; selectedIds: string[]; setSelectedIds: Dispatch<SetStateAction<string[]>>; ... 4 more ...; emptyStateContent: Element; }' is not assignable to type 'IntrinsicAttributes & CatalogContentProps'.
ts-check
Process completed with exit code 2.
lint: app/scripts/components/common/aoi/types.d.ts#L38
Unexpected any. Specify a different type
lint: app/scripts/components/common/aoi/use-aoi-controls.ts#L131
React Hook useCallback has a missing dependency: 'mapRef'. Either include it or remove the dependency array. If 'setAoi' needs the current value of 'mapRef', you can also switch to useReducer instead of useState and read 'mapRef' in the reducer
lint: app/scripts/components/common/blocks/block-map.tsx#L184
React Hook useMemo has a missing dependency: 'datasetLayers'. Either include it or remove the dependency array
lint: app/scripts/components/common/blocks/index.tsx#L251
Delete `⏎····`
lint: app/scripts/components/common/blocks/index.tsx#L257
Replace `······` with `····`
lint: app/scripts/components/common/blocks/index.tsx#L258
Replace `··return·typeVal._payload.value[typeVal._payload.value.length-` with `return·typeVal._payload.value[typeVal._payload.value.length·-·`