fix: add type annotation to recentTournaments and fix ESLint configuration
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"extends": ["next/core-web-vitals", "next/typescript"],
|
||||||
|
"ignorePatterns": [
|
||||||
|
".next",
|
||||||
|
"out",
|
||||||
|
"build",
|
||||||
|
"next-env.d.ts"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@ import Navigation from "@/components/Navigation"
|
|||||||
import Link from "next/link"
|
import Link from "next/link"
|
||||||
import { redirect } from "next/navigation"
|
import { redirect } from "next/navigation"
|
||||||
import { getSession } from "@/lib/auth-simple"
|
import { getSession } from "@/lib/auth-simple"
|
||||||
|
import { Event } from "@prisma/client"
|
||||||
|
|
||||||
export default async function AdminDashboard() {
|
export default async function AdminDashboard() {
|
||||||
console.log('AdminDashboard rendering...')
|
console.log('AdminDashboard rendering...')
|
||||||
@@ -53,7 +54,7 @@ export default async function AdminDashboard() {
|
|||||||
take: 5,
|
take: 5,
|
||||||
orderBy: { createdAt: "desc" },
|
orderBy: { createdAt: "desc" },
|
||||||
}),
|
}),
|
||||||
])
|
]) as [number, number, number, Event[]]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-gray-50">
|
<div className="min-h-screen bg-gray-50">
|
||||||
|
|||||||
Reference in New Issue
Block a user