fix file closing bug

This commit is contained in:
Ishaan Dey
2024-05-04 01:18:06 -07:00
parent 17af48fe2c
commit 7b5acc9947
3 changed files with 52 additions and 37 deletions

View File

@ -2,7 +2,7 @@
import { X } from "lucide-react"
import { Button } from "./button"
import { useEffect } from "react"
import { MouseEvent, MouseEventHandler, useEffect } from "react"
export default function Tab({
children,
@ -14,7 +14,7 @@ export default function Tab({
children: React.ReactNode
saved?: boolean
selected?: boolean
onClick?: () => void
onClick?: MouseEventHandler<HTMLButtonElement>
onClose?: () => void
}) {
return (