Skip to content

Commit

Permalink
feat: add item painel admin
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Apr 12, 2022
1 parent 7e636d0 commit b3c8dcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/DropdownMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useDropdown } from 'hooks/useDropdown';
import styles from './DropdownMenu.module.scss';

export function DropdownMenu() {
const { user } = useAuth();
const { user, isAlexander } = useAuth();
const { activeMenu, dropdownRef, calcHeight, menuHeight, photo } = useDropdown();

return (
Expand Down Expand Up @@ -39,6 +39,7 @@ export function DropdownMenu() {
Meu Perfil
</DropdownItem>

{isAlexander && <DropdownItem link="/admin">Painel Admin</DropdownItem>}
<DropdownItem logout>Sair</DropdownItem>
</div>
</CSSTransition>
Expand Down

0 comments on commit b3c8dcb

Please sign in to comment.