Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabau committed Nov 9, 2023
1 parent 1a18762 commit 5739ec7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions src/components/NavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useSession } from "next-auth/react";
import { signOut, useSession } from "next-auth/react";
import Link from "next/link";
import { useRouter } from "next/router";
Expand All @@ -11,7 +10,6 @@ const NavBar = () => {
const toggleDropdown = () => {
setIsDropdownOpen(!isDropdownOpen);
};
const { data: session } = useSession();

const closeDropdown = () => setIsDropdownOpen(false);

Expand Down Expand Up @@ -84,7 +82,7 @@ const NavBar = () => {
className="flex items-center justify-center font-bold text-white no-underline transition hover:bg-white/20 rounded-md whitespace-nowrap bg-white/10 flex-[1_0_0%] px-4"
>
SignIn
</Link>
</Link>}
{
session?.user.role === "MAINTAINER" &&
<Link
Expand All @@ -95,7 +93,6 @@ const NavBar = () => {
Test cases
</Link>
}
</Link>}
{session && <div
onClick={() => {
void signOut();
Expand Down
1 change: 0 additions & 1 deletion src/types/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export class Question {
id = "";
};

export type QuestionMap = Map<string, Question>;

// todo: dup code
export type ModifyQuestionProps = {
Expand Down

0 comments on commit 5739ec7

Please sign in to comment.