From aeb8630a8a9aaa086f44990bf78d5519483b28b3 Mon Sep 17 00:00:00 2001 From: Bochkovskyi Date: Sun, 28 Jan 2024 15:19:53 +0200 Subject: [PATCH] update return statement --- src/components/ui/input.tsx | 44 ++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx index 49268ed..17e3977 100644 --- a/src/components/ui/input.tsx +++ b/src/components/ui/input.tsx @@ -7,21 +7,35 @@ export interface InputProps const Input = React.forwardRef( ({ className, placeholder, type, ...props }, ref) => { return ( -
- - - {placeholder} - -
+ <> + {placeholder ? ( +
+ + + {placeholder} + +
+ ) : ( + + )} + ) } )