change button to link for logout
This commit is contained in:
parent
a967a298cb
commit
2a58b0698b
1 changed files with 1 additions and 5 deletions
|
@ -5,10 +5,6 @@
|
|||
let { children } = $props();
|
||||
|
||||
let guildsAnchor: string = $state("/new/dashboard");
|
||||
|
||||
async function logout() {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="dashboard container mx-auto px-2 py-2 md:px-6 md:py-6">
|
||||
|
@ -25,7 +21,7 @@
|
|||
<div class="flex-1 flex items-center flex-wrap">
|
||||
<ul class="dashboard-nav list-none flex md:ml-8">
|
||||
<a class="flex-auto mr-4" href={guildsAnchor} class:underline={guildsAnchor === $page.url.pathname}>Guilds</a>
|
||||
<button class="navbar-item hover:text-red-400 mr-2" onclick={logout}>Log out</button>
|
||||
<a href="/new/auth/logout" class="navbar-item hover:text-red-400 mr-2">Log out</a>
|
||||
</ul>
|
||||
|
||||
<div class="flex-1 flex items-center md:justify-end">
|
||||
|
|
Loading…
Add table
Reference in a new issue