Local deployment compiles with warnings
Currently the app produces the following warnings when ran locally. These should probably be fixed/commented out as to not confuse the students unless they are on purpose.
src\App.jsx
Line 1:38: 'useRef' is defined but never used no-unused-vars
Line 6:10: 'useHistory' is defined but never used no-unused-vars
src\components\Adverts.jsx
Line 3:8: 'Button' is defined but never used no-unused-vars
src\components\Children.jsx
Line 3:8: 'Button' is defined but never used no-unused-vars
src\components\Contracts.jsx
Line 3:8: 'Button' is defined but never used no-unused-vars
src\components\Home.jsx
Line 1:17: 'useState' is defined but never used no-unused-vars
Line 18:6: React Hook useEffect has missing dependencies: 'history' and 'setUser'. Either include them or remove the dependency array. If 'setUser' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
src\components\Offer.jsx
Line 54:6: React Hook useEffect has a missing dependency: 'offer.advert'. Either include it or remove the dependency array react-hooks/exhaustive-deps
src\components\ResetPassword.jsx
Line 9:8: 'Link' is defined but never used no-unused-vars
Line 10:10: 'useHistory' is defined but never used no-unused-vars
Line 10:35: 'useParams' is defined but never used no-unused-vars
src\components\SignupForm.jsx
Line 21:29: 'setUsernameErrorText' is assigned a value but never used no-unused-vars
Line 22:29: 'setPasswordErrorText' is assigned a value but never used no-unused-vars
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.