shabados / presenter

Desktop app for presenting the Shabad OS Database on projectors, TVs, and live streams
https://shabados.com
MIT License
18 stars 15 forks source link

Upgrade to React Router v6 functions #677

Closed ManpreetSL closed 1 year ago

ManpreetSL commented 1 year ago

React Router DOM package is changing things like useHistory() in v5 to useNavigate() in v6. See here for more details. The app currently uses the old useHistory() hook from the React Router package, but the app has v6 installed, so we'd like to update usages of the old function wherever possible. We also want to replace <Redirect /> with <Navigate />.

This PR:

Implements #678.