diff --git a/frontend/src/components/Input.tsx b/frontend/src/components/Input.tsx index e703ff14..247446ef 100644 --- a/frontend/src/components/Input.tsx +++ b/frontend/src/components/Input.tsx @@ -1,4 +1,5 @@ import { InputProps } from './types'; +import { useRef } from 'react'; const Input = ({ id, @@ -27,15 +28,19 @@ const Input = ({ thin: 'border', thick: 'border-2', }; + + const inputRef = useRef(null); + return (
{children} - {label && ( -
- - {label} - {required && ( - - * - - )} - -
+ {(label || placeholder) && ( + )}
);