Added image support
This commit is contained in:
parent
fefa78ae57
commit
74000da528
File diff suppressed because one or more lines are too long
@ -83,6 +83,7 @@ const FormImagePicker = ({
|
||||
className='absolute top-0 left-0 w-full h-full opacity-0 outline-none cursor-pointer -z-1'
|
||||
onChange={handleFileChange}
|
||||
accept={accept}
|
||||
capture
|
||||
disabled={loading}
|
||||
/>
|
||||
</label>
|
||||
|
||||
@ -202,12 +202,14 @@ const EditBottlesPage = () => {
|
||||
path={'bottles/picture'}
|
||||
name='picture'
|
||||
id='picture'
|
||||
accept='image/*'
|
||||
capture
|
||||
schema={{
|
||||
size: undefined,
|
||||
formats: undefined,
|
||||
}}
|
||||
component={FormImagePicker}
|
||||
></Field>
|
||||
/>
|
||||
</FormField>
|
||||
|
||||
<FormField label='Age'>
|
||||
|
||||
@ -177,6 +177,8 @@ const BottlesNew = () => {
|
||||
path={'bottles/picture'}
|
||||
name='picture'
|
||||
id='picture'
|
||||
accept='image/*'
|
||||
capture
|
||||
schema={{
|
||||
size: undefined,
|
||||
formats: undefined,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user