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

@@ -105,6 +105,7 @@ export default function DefaultNavBar() {
<Toolbar>
{
!navbarItems.some(({ path }) => path === history.location.pathname)
&& !history.location.pathname.startsWith('/library')
&& (
<IconButton
edge="start"