Skip to content

Commit

Permalink
Removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
WishingWell13 committed Feb 4, 2025
1 parent 9a3efaf commit 6fe1a74
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions client/src/app/login/login.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
'use server';

import { login as apiLogin } from '@/lib/api/UserAPI';
import { deleteUserCookies, setCookie } from '@/lib/services/CookieService';
import { setCookie } from '@/lib/services/CookieService';
import { CookieType } from '@/lib/types/enums';
import { getErrorMessage } from '@/lib/utils';
import { cookies } from 'next/headers';
import { redirect } from 'next/navigation';
import { deleteCookie, getCookie } from 'cookies-next';

export async function login(email: string, password: string): Promise<string> {
let response;
Expand Down
2 changes: 0 additions & 2 deletions client/src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import TextField from '@/components/TextField';
import Link from 'next/link';
import Alert from '@/components/Alert';
import { useForm, SubmitHandler } from 'react-hook-form';
import { useRouter } from 'next/navigation';
import { useEffect, useState } from 'react';
import { login } from './login';
import { CookieType } from '@/lib/types/enums';
Expand All @@ -23,7 +22,6 @@ interface LoginValues {

export default function LoginPage() {
const [error, setError] = useState<string | undefined>(undefined);
const router = useRouter();

const {
register,
Expand Down

0 comments on commit 6fe1a74

Please sign in to comment.