From 32faaf6d4d40d2a79cee7dbda6c6a2b776e8ccbb Mon Sep 17 00:00:00 2001 From: Emir Karabeg Date: Thu, 30 Jan 2025 13:42:00 -0800 Subject: [PATCH] Fixed short input comments --- .../components/sub-block/components/short-input.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/w/components/workflow-block/components/sub-block/components/short-input.tsx b/app/w/components/workflow-block/components/sub-block/components/short-input.tsx index e86d4e19b9..24903fee66 100644 --- a/app/w/components/workflow-block/components/sub-block/components/short-input.tsx +++ b/app/w/components/workflow-block/components/sub-block/components/short-input.tsx @@ -1,10 +1,8 @@ -// Imports import { Input } from '@/components/ui/input' import { useState, useRef, useEffect } from 'react' import { useSubBlockValue } from '../hooks/use-sub-block-value' import { cn } from '@/lib/utils' -// Component Props Interface interface ShortInputProps { placeholder?: string password?: boolean @@ -20,10 +18,9 @@ export function ShortInput({ password, isConnecting, }: ShortInputProps) { - // Hooks and State - const inputRef = useRef(null) const [isFocused, setIsFocused] = useState(false) const [value, setValue] = useSubBlockValue(blockId, subBlockId) + const inputRef = useRef(null) const overlayRef = useRef(null) // Sync scroll position between input and overlay @@ -104,7 +101,6 @@ export function ShortInput({ }) } - // Component render return (