fix: Resolve build errors (remove unused variables and fix types)
This commit is contained in:
@@ -52,6 +52,7 @@ export function CalendarView({ events = [], halls = [] }: CalendarViewProps) {
|
||||
router.push(`/dashboard/reservations/${event.id}`)
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const handleSelectSlot = ({ start, end }: { start: Date, end: Date }) => {
|
||||
// Optional: Navigate to create page
|
||||
}
|
||||
@@ -106,6 +107,7 @@ export function CalendarView({ events = [], halls = [] }: CalendarViewProps) {
|
||||
event: "Etkinlik",
|
||||
noEventsInRange: "Bu aralıkta etkinlik yok."
|
||||
}}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
eventPropGetter={(event) => ({
|
||||
className: "bg-primary text-primary-foreground text-xs rounded-md border-none px-2 py-1 shadow-sm hover:bg-primary/90 transition-colors cursor-pointer"
|
||||
})}
|
||||
|
||||
@@ -4,7 +4,7 @@ import Link from "next/link"
|
||||
import { usePathname } from "next/navigation"
|
||||
import { cn } from "@/lib/utils"
|
||||
import { Button } from "@/components/ui/button"
|
||||
import { CalendarDays, Users, Home, Settings, Building2, CreditCard, LogOut, Receipt } from "lucide-react"
|
||||
import { CalendarDays, Users, Home, Settings, Building2, CreditCard, Receipt } from "lucide-react"
|
||||
|
||||
interface MainNavProps extends React.HTMLAttributes<HTMLElement> {
|
||||
onNavClick?: () => void
|
||||
|
||||
@@ -11,7 +11,6 @@ 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)
|
||||
}, [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user