Detect just settings tab w/o section
This commit is contained in:
parent
e35c0b3b52
commit
3a814a5b5d
|
@ -67,9 +67,11 @@ export default function Notifications() {
|
|||
|
||||
useEffect(() => {
|
||||
const query = { ...router.query }
|
||||
if (query.tab === 'settings') {
|
||||
setActiveIndex(1)
|
||||
}
|
||||
if (query.section) {
|
||||
setNavigateToSection(query.section as string)
|
||||
setActiveIndex(1)
|
||||
}
|
||||
}, [router.query])
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user