Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
fix: login page
Browse files Browse the repository at this point in the history
  • Loading branch information
jspark2000 committed Aug 25, 2024
1 parent 746704a commit 49868c9
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 446 deletions.
5 changes: 2 additions & 3 deletions frontend/src/app/(public)/login/_components/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Input } from '@/components/ui/input'
import { LoginFormSchema } from '@/lib/forms'
import { zodResolver } from '@hookform/resolvers/zod'
import { signIn } from 'next-auth/react'
import { useRouter, useSearchParams } from 'next/navigation'
import { useRouter } from 'next/navigation'
import { useState } from 'react'
import { useForm } from 'react-hook-form'
import { toast } from 'sonner'
Expand All @@ -22,7 +22,6 @@ import type { z } from 'zod'
export default function LoginForm() {
const [isFetching, setIsFetching] = useState(false)
const router = useRouter()
const searchParams = useSearchParams()

const form = useForm<z.infer<typeof LoginFormSchema>>({
resolver: zodResolver(LoginFormSchema),
Expand All @@ -42,7 +41,7 @@ export default function LoginForm() {

if (!res?.error) {
router.refresh()
router.push(searchParams.get('callbackUrl') ?? '/console/dashboard')
router.push('/console/dashboard')
} else {
toast.error('로그인 실패')
}
Expand Down
241 changes: 0 additions & 241 deletions frontend/src/app/(public)/quiz/_components/QuizSection.tsx

This file was deleted.

81 changes: 0 additions & 81 deletions frontend/src/app/(public)/quiz/_components/StudentIdForm.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions frontend/src/app/(public)/quiz/page.tsx

This file was deleted.

Loading

0 comments on commit 49868c9

Please sign in to comment.