Add recent serches and recent chats in Search router #899
Annotations
10 errors and 2 warnings
src/components/Search/SearchRouter/SearchRouter.tsx#L65
Expected the first argument to be an inline function expression
|
src/components/Search/SearchRouter/SearchRouterInput.tsx#L1
'useState' is defined but never used
|
src/components/Search/SearchRouter/SearchRouterInput.tsx#L16
'text' is already declared in the upper scope on line 13 column 29
|
src/components/Search/SearchRouter/SearchRouterList.tsx#L99
Expected a default case
|
src/components/Search/SearchRouter/SearchRouterList.tsx#L99
Switch is not exhaustive. Cases not matched: undefined
|
src/components/Search/SearchRouter/SearchRouterList.tsx#L105
Unexpected lexical declaration in case block
|
src/components/Search/SearchRouter/SearchRouterList.tsx#L123
Unnecessary return statement
|
src/components/Search/types.ts#L2
'SingleIconListItemProps' is defined but never used
|
src/components/Search/types.ts#L3
'ListItemProps' is defined but never used
|
src/components/Search/types.ts#L3
'UserListItemProps' is defined but never used
|
src/components/Search/SearchRouter/SearchRouter.tsx#L64
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead
|
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
|
This job failed
Loading