Skip to content

Commit

Permalink
feat: add logout icon in desktop breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
aon committed Jan 17, 2025
1 parent 5fc1724 commit 774d978
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/auth-server/components/app/nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@
</div>
<div
v-show="!showMobileMenu"
class="flex items-center pr-2"
class="flex gap-2 items-center pr-2"
>
<app-color-mode />
<ZkButtonIcon
icon="Logout"
class="mr-1 -ml-1 scale-[-1]"
@click="logout()"
/>
</div>
<div
v-show="showMobileMenu"
Expand Down Expand Up @@ -80,6 +85,13 @@ onBeforeUnmount(() => {
});
watch(windowWidth, checkWidths);
const { logout: _logout } = useAccountStore();
const logout = () => {
_logout();
navigateTo("/");
};
</script>

<style lang="scss" scoped>
Expand Down

0 comments on commit 774d978

Please sign in to comment.