diff --git a/app/components/Form.tsx b/app/components/Form.tsx index d6b4c7d..b8a007c 100644 --- a/app/components/Form.tsx +++ b/app/components/Form.tsx @@ -1,13 +1,13 @@ "use client"; -import { ReactNode, useContext, useRef, useState } from "react"; +import { ChangeEvent, ReactNode, useContext, useRef, useState } from "react"; import { SceneViewContext, SceneViewContextType, } from "../providers/scene-view-provider"; import { Mesh, MeshStandardMaterial } from "three"; -import { scheduler } from "timers/promises"; +import { CustomEvent } from "../three/SceneView"; function Toggle({ title, @@ -15,7 +15,7 @@ function Toggle({ defaultChecked, }: { title: string; - onChange: () => void; + onChange: (e: any) => void; defaultChecked?: boolean; }) { return ( @@ -44,6 +44,7 @@ function Accordion({ }) { const [expanded, setExpanded] = useState(true); const accordionBodyRef = useRef(null); + function handleClick() { if (!accordionBodyRef.current) return; @@ -56,7 +57,7 @@ function Accordion({