diff --git a/compiler/forget/packages/playground/components/Editor/index.tsx b/compiler/forget/packages/playground/components/Editor/index.tsx index d9c5069730..6b0140cb06 100644 --- a/compiler/forget/packages/playground/components/Editor/index.tsx +++ b/compiler/forget/packages/playground/components/Editor/index.tsx @@ -33,10 +33,6 @@ export default function Editor() { const [showOutputOnMobile, setShowOutputOnMobile] = useState(false); const { width: windowWidth } = useWindowSize(); const isMobile = windowWidth < 640; - const [inputWidthInPct, setInputWidthInPct] = useState(50); - const handleDrag = useDrag(({ delta: [x], xy: [currentPos] }) => { - if (x !== 0) setInputWidthInPct(((currentPos + x) / windowWidth) * 100); - }); const [diagnostics, setDiagnostics] = useState([]); const updateDiagnostics = useCallback( (newDiags: Diagnostic[]) => setDiagnostics(newDiags), @@ -74,20 +70,16 @@ export default function Editor() {
-