Skip to content

Add recent serches and recent chats in Search router #89870

Add recent serches and recent chats in Search router

Add recent serches and recent chats in Search router #89870

Triggered via pull request September 25, 2024 06:04
Status Failure
Total duration 9m 29s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
ESLint check: src/components/Search/SearchRouter/SearchRouter.tsx#L65
Expected the first argument to be an inline function expression
ESLint check: src/components/Search/SearchRouter/SearchRouterInput.tsx#L1
'useState' is defined but never used
ESLint check: src/components/Search/SearchRouter/SearchRouterInput.tsx#L16
'text' is already declared in the upper scope on line 13 column 29
ESLint check: src/components/Search/SearchRouter/SearchRouterList.tsx#L99
Switch is not exhaustive. Cases not matched: undefined
ESLint check: src/components/Search/SearchRouter/SearchRouterList.tsx#L105
Unexpected lexical declaration in case block
ESLint check: src/components/Search/types.ts#L2
'SingleIconListItemProps' is defined but never used
ESLint check: src/components/Search/types.ts#L3
'ListItemProps' is defined but never used
ESLint check: src/components/Search/types.ts#L3
'UserListItemProps' is defined but never used
ESLint check: src/components/Search/SearchRouter/SearchRouter.tsx#L64
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead
ESLint check: src/components/Search/SearchRouter/SearchRouterList.tsx#L126
React Hook useCallback has a missing dependency: 'updateUserSearchQuery'. Either include it or remove the dependency array. If 'updateUserSearchQuery' changes too often, find the parent component that defines it and wrap that definition in useCallback