Update input component

This commit is contained in:
Hazem Krimi
2021-04-21 00:27:58 +01:00
parent 6696282720
commit 66cc199c65
2 changed files with 10 additions and 3 deletions
+9 -2
View File
@@ -17,7 +17,7 @@ type InputProps = {
error?: boolean;
errorMessage?: string;
value: string;
label: string;
label?: string;
type?: 'text' | 'email' | 'password' | 'file' | 'number';
placeholder?: string;
fullWidth?: boolean;
@@ -28,6 +28,7 @@ const Input = ({
type = 'text',
color = 'client',
label,
placeholder,
value,
onChange,
error,
@@ -54,7 +55,13 @@ const Input = ({
<Upload />
</span>
)}
<input type={type} value={value} onChange={onChange} accept='image/*' />
<input
type={type}
value={value}
onChange={onChange}
accept='image/*'
placeholder={placeholder}
/>
</div>
</Wrapper>
);