Skip to content

Commit

Permalink
Remove unused imports and variables
Browse files Browse the repository at this point in the history
  • Loading branch information
harshjohar committed Jan 30, 2024
1 parent 8a7797a commit 1aeb67f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions components/dashboard/SidebarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import JSX = jsx.JSX;
import Link from "next/link";
import styles from "../../styles/components/SidebarItem.module.scss";
import { useRouter } from "next/router";
import { Common } from "../../constants/common";
import { useLocalStorage } from "usehooks-ts";
import logout from "../../lib/logout";
import { useState } from "react";
import { useSession } from "next-auth/react";
Expand Down
1 change: 0 additions & 1 deletion pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import CustomTextField from "../components/common/CustomTextField/CustomTextFiel
import DialogPopup from "../components/common/DialogPopup/DialogPopup";
import Link from "next/link";
import { login } from "../repository/auth";
import { Common } from "../constants/common";
import { useRouter } from "next/router";
import { GetServerSidePropsContext } from "next";
import Cookies from "universal-cookie";
Expand Down
7 changes: 0 additions & 7 deletions pages/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import "react-confirm-alert/src/react-confirm-alert.css";
import DialogPopup from "../components/common/DialogPopup/DialogPopup";
import CustomTextField from "../components/common/CustomTextField/CustomTextField";
import { register } from "../repository/auth";
import { useLocalStorage } from "usehooks-ts";
import { Common } from "../constants/common";
import { useRouter } from "next/router";
import { GetServerSidePropsContext } from "next";
import getServerCookieData from "../lib/getServerCookieData";
Expand All @@ -32,11 +30,6 @@ function Register() {
confirmPassword: "",
});

const [_, setAuthorization] = useLocalStorage<string | null>(
Common.AUTHORIZATION,
null
);

const [error, setError] = useState({
error: false,
title: "",
Expand Down

0 comments on commit 1aeb67f

Please sign in to comment.