mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-27 07:46:15 +01:00
Merge pull request #4693 from h3poteto/iss-4653/save-timeline
refs #4653 Save the last timeline and go to there when opened
This commit is contained in:
commit
0e538e989b
@ -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…
x
Reference in New Issue
Block a user