diff --git a/src/views/developer/TestView.tsx b/src/views/developer/TestView.tsx index 744d6bda..8dc1ccdd 100644 --- a/src/views/developer/TestView.tsx +++ b/src/views/developer/TestView.tsx @@ -1,92 +1,4 @@ -import { Button } from "@/components/Button"; -import { FloatingAnchor } from "@/components/popout/FloatingAnchor"; -import { - FloatingCardView, - PopoutFloatingCard, -} from "@/components/popout/FloatingCard"; -import { FloatingContainer } from "@/components/popout/FloatingContainer"; -import { FloatingView } from "@/components/popout/FloatingView"; -import { useFloatingRouter } from "@/hooks/useFloatingRouter"; -import { useEffect, useRef, useState } from "react"; - // simple empty view, perfect for putting in tests export function TestView() { - const [show, setShow] = useState(false); - const { pageProps, navigate } = useFloatingRouter(); - const [left, setLeft] = useState(600); - const direction = useRef(1); - - useEffect(() => { - const step = 0; - const interval = setInterval(() => { - setLeft((v) => { - const newVal = v + direction.current * step; - if (newVal > window.innerWidth || newVal < 0) { - direction.current *= -1; - } - return v + direction.current * step; - }); - }, 10); - - return () => { - clearInterval(interval); - }; - }, []); - - return ( -
Hello world
- -Hello world
-navigate("/second")}>Click to go brrr
- - -