chore: typing for sidepeek components
This commit is contained in:
@@ -5,15 +5,14 @@ import { Dialog, DialogTrigger, Modal } from "react-aria-components"
|
||||
|
||||
import styles from "./sidePeek.module.css"
|
||||
|
||||
type SidePeekProps = {
|
||||
activeContent: string | null
|
||||
onClose: (isOpen: boolean) => void
|
||||
}
|
||||
export default function SidePeek({
|
||||
children,
|
||||
onClose,
|
||||
activeContent,
|
||||
}: PropsWithChildren<SidePeekProps>) {
|
||||
}: PropsWithChildren<{
|
||||
onClose: (isOpen: boolean) => void
|
||||
activeContent: string | null
|
||||
}>) {
|
||||
return (
|
||||
<DialogTrigger>
|
||||
<Modal
|
||||
|
||||
Reference in New Issue
Block a user