Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Commit

Permalink
Update AdminNav.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dani832m committed Jan 6, 2020
1 parent c2ff920 commit 781fb80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/adminNav/AdminNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {

// AdminNav komponent
function AdminNav() {
// ME query defineres
// ME2 query defineres
const ME2 = gql`
{
me2(token: ${localStorage.token}) {
Expand All @@ -27,8 +27,10 @@ function AdminNav() {
}
}
`;

// Client initialiseres til at være ME2 query
const { loading, error, data, client } = useQuery(ME2);

// States med React Hooks
const [isOpen, setIsOpen] = useState(false);

Expand Down Expand Up @@ -89,4 +91,5 @@ function AdminNav() {
</React.Fragment>
);
}

export default AdminNav;

0 comments on commit 781fb80

Please sign in to comment.