mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-23 07:26:36 +01:00
refs #4653 Save the last timeline and go to there when opened
This commit is contained in:
parent
7a749b9355
commit
293c680b1c
@ -27,6 +27,12 @@ export default function Page() {
|
||||
}
|
||||
}, [router.query.id])
|
||||
|
||||
useEffect(() => {
|
||||
if (router.query.timeline && router.query.id && typeof localStorage !== 'undefined') {
|
||||
localStorage.setItem(`${router.query.id}_lastTimeline`, router.query.timeline as string)
|
||||
}
|
||||
}, [router.query.id, router.query.timeline])
|
||||
|
||||
if (!account || !client) return null
|
||||
switch (router.query.timeline as string) {
|
||||
case 'notifications': {
|
||||
|
Loading…
Reference in New Issue
Block a user