fix: Resolve build errors (linting and types)

This commit is contained in:
2025-12-07 19:20:31 +03:00
parent b189a19651
commit 7fb9347528
14 changed files with 32 additions and 17 deletions

View File

@@ -31,6 +31,7 @@ const localizer = dateFnsLocalizer({
})
interface CalendarViewProps {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
events?: any[]
halls?: { id: string, name: string }[]
}
@@ -46,6 +47,7 @@ export function CalendarView({ events = [], halls = [] }: CalendarViewProps) {
return events.filter(event => event.resource.hall_id === selectedHallId)
}, [events, selectedHallId])
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const handleDoubleClickEvent = (event: any) => {
router.push(`/dashboard/reservations/${event.id}`)
}

View File

@@ -11,6 +11,7 @@ export function MobileSidebar({ user }: { user?: { name: string | null; email: s
const [isMounted, setIsMounted] = useState(false)
useEffect(() => {
// eslint-disable-next-line react-hooks/exhaustive-deps
setIsMounted(true)
}, [])

View File

@@ -9,7 +9,6 @@ import {
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuShortcut,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu"
import { signOut } from "@/app/(auth)/actions"