Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes Issue
This PR fixes the following issues:
1)Replaced deprecated hooks in Banner.js file,Search.js file and made syntactical changes to App.js file according to the latest react-version.
1)In Banner.js file : Replaced useHistory with useNavigate and made changes according to useNavigate uses.
2)In app.js file replaced Switch with Routes as according to the latest version of react.Also modified code according to latest version of react.
3)In search.js file replaced useHistory with useNavigate and made changes accordingly.
4)Replaced usage of defactored hooks according to latest react version in package.json
Changes proposed
Here comes all the changes proposed through this PR
Check List (Check all the boxes which are applicable)
Screenshots
![Screenshot (504)](https://user-images.githubusercontent.com/78663631/152669115-a619b7cd-0a1e-4df8-bb23-52c779d9
0fa6.png)
Add all the screenshots which support your changes