This commit is contained in:
GokaPek 2024-01-12 12:37:03 +04:00
parent 29a98ec380
commit 3fa15f53a7
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
#image-preview {
width: 200px;
}
.imgfile {
max-width: 1000px;
}

View File

@ -22,7 +22,7 @@ const LinesItemForm = ({ item, handleChange }) => {
type='text' required />
<Input name='price' label='Price' value={item.price} onChange={handleChange}
type='number' min='50.0' step='1.0' required />
<Input name='image' label='Image' onChange={handleChange}
<Input id='imgfile' name='image' label='Image' onChange={handleChange}
type='file' accept='image/*' />
<Input name='datafile' label='file' onChange={handleChange}
type='file' accept='application/pdf/*' />