Save tabs number in Url to persist tab when go to other paths (#78)

* added an optional  url parameter to the library path to get to a particular tab

* Added Error checking when taking the parameter from the Url

* Now Tabs persist with library options

* FIxed a bug which made the backbutton appear in the Library route when tabs number was presents in the url
This commit is contained in:
abhijeetChawla
2021-11-17 16:10:04 +05:30
committed by GitHub
parent 0de066368f
commit 0a89d227db
3 changed files with 18 additions and 3 deletions

View File

@@ -158,7 +158,7 @@ export default function App() {
<Route path="/manga/:id">
<Manga />
</Route>
<Route path="/library">
<Route path="/library/:tabParamNumber?">
<Library />
</Route>
<Route path="/updates">