added global context and started example with Banner #109
Annotations
4 errors and 11 warnings
lint-client?:
client/src/components/BannerSection.tsx#L7
'useHistory' is defined but never used
|
lint-client?:
client/src/components/BannerSection.tsx#L55
'handleOpenModal' is assigned a value but never used
|
lint-client?:
client/src/components/BannerSection.tsx#L70
Unexpected use of 'history'
|
lint-client?
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint-client?:
client/src/components/BannerSection.tsx#L7
'useHistory' is defined but never used
|
lint-client?:
client/src/components/BannerSection.tsx#L55
'handleOpenModal' is assigned a value but never used
|
lint-client?:
client/src/components/FAQs.tsx#L61
Redundant alt attribute. Screen-readers already announce `img` tags as an image. You don’t need to use the words `image`, `photo,` or `picture` (or any specified custom words) in the alt prop
|
lint-client?:
client/src/components/Users/Auth/SetNewPassword.tsx#L155
Redundant alt attribute. Screen-readers already announce `img` tags as an image. You don’t need to use the words `image`, `photo,` or `picture` (or any specified custom words) in the alt prop
|
lint-client?:
client/src/components/Users/Auth/SignUpCitizen/SignUpCitizen.tsx#L59
React Hook useEffect has missing dependencies: 'formData' and 'registerUserMutation'. Either include them or remove the dependency array
|
lint-client?:
client/src/components/Users/Auth/SignUpCitizen/SignUpCitizen.tsx#L66
React Hook useEffect has missing dependencies: 'image', 'updateProfileMutation', and 'user'. Either include them or remove the dependency array
|
lint-client?:
client/src/providers/UserProvider.tsx#L65
React Hook React.useEffect has a missing dependency: 'setUserTimeout'. Either include it or remove the dependency array
|
lint-client?:
client/src/views/EmailVerification.tsx#L33
React Hook React.useEffect has a missing dependency: 'history'. Either include it or remove the dependency array
|
lint-client?:
client/src/views/Login.tsx#L14
React Hook useEffect has a missing dependency: 'modalContext'. Either include it or remove the dependency array
|
lint-client?:
client/src/views/SearchResults.tsx#L88
The 'fetchSearchData' function makes the dependencies of useEffect Hook (at line 131) change on every render. Move it inside the useEffect callback. Alternatively, wrap the definition of 'fetchSearchData' in its own useCallback() Hook
|
Loading