feat: update dashboard navigation links; redirect to post page on dashboard access
Some checks failed
Frontend CI / build (push) Failing after 57s
Some checks failed
Frontend CI / build (push) Failing after 57s
This commit is contained in:
parent
f63d42304d
commit
9d7a8bd300
@ -38,8 +38,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
const links: DashboardLink[] = [
|
const links: DashboardLink[] = [
|
||||||
{ label: 'Image', href: '/dashboard/image' },
|
|
||||||
{ label: 'Post', href: '/dashboard/post' },
|
{ label: 'Post', href: '/dashboard/post' },
|
||||||
|
{ label: 'Image', href: '/dashboard/image' },
|
||||||
];
|
];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -5,6 +5,6 @@ export const load: PageServerLoad = async ({ url }) => {
|
|||||||
const { pathname } = url;
|
const { pathname } = url;
|
||||||
|
|
||||||
if (pathname === '/dashboard') {
|
if (pathname === '/dashboard') {
|
||||||
redirect(302, '/dashboard/image');
|
redirect(302, '/dashboard/post');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user