Skip to content

Commit

Permalink
fixup! feat(admin): add sidebar component
Browse files Browse the repository at this point in the history
  • Loading branch information
er-lim committed Feb 13, 2025
1 parent 8456fd6 commit 9a6537d
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 102 deletions.
10 changes: 1 addition & 9 deletions admin/app/components/layout/sidebar.gjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import PixButtonLink from '@1024pix/pix-ui/components/pix-button-link';
import PixNavigation from '@1024pix/pix-ui/components/pix-navigation';
import PixNavigationButton from '@1024pix/pix-ui/components/pix-navigation-button';
import { action } from '@ember/object';
import { LinkTo } from '@ember/routing';
import { service } from '@ember/service';
import Component from '@glimmer/component';
Expand All @@ -18,11 +17,6 @@ export default class Sidebar extends Component {
return `${adminMember?.firstName} ${adminMember?.lastName}`;
}
@action
logout() {
return this.session.invalidate();
}
<template>
<PixNavigation @menuLabel="Menu">
<:brand>
Expand Down Expand Up @@ -129,9 +123,7 @@ export default class Sidebar extends Component {
<p class="sidebar-footer__full-name">{{this.userFullName}}</p>
<PixButtonLink @variant="tertiary" class="" @route="logout">{{t
"components.layout.sidebar.logout"
}}</PixButtonLink>
<PixButtonLink @variant="tertiary" @route="logout">{{t "components.layout.sidebar.logout"}}</PixButtonLink>
</:footer>
</PixNavigation>
Expand Down
Loading

0 comments on commit 9a6537d

Please sign in to comment.