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'
|
className='absolute top-0 left-0 w-full h-full opacity-0 outline-none cursor-pointer -z-1'
|
||||||
onChange={handleFileChange}
|
onChange={handleFileChange}
|
||||||
accept={accept}
|
accept={accept}
|
||||||
|
capture
|
||||||
disabled={loading}
|
disabled={loading}
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
@ -202,12 +202,14 @@ const EditBottlesPage = () => {
|
|||||||
path={'bottles/picture'}
|
path={'bottles/picture'}
|
||||||
name='picture'
|
name='picture'
|
||||||
id='picture'
|
id='picture'
|
||||||
|
accept='image/*'
|
||||||
|
capture
|
||||||
schema={{
|
schema={{
|
||||||
size: undefined,
|
size: undefined,
|
||||||
formats: undefined,
|
formats: undefined,
|
||||||
}}
|
}}
|
||||||
component={FormImagePicker}
|
component={FormImagePicker}
|
||||||
></Field>
|
/>
|
||||||
</FormField>
|
</FormField>
|
||||||
|
|
||||||
<FormField label='Age'>
|
<FormField label='Age'>
|
||||||
|
|||||||
@ -177,6 +177,8 @@ const BottlesNew = () => {
|
|||||||
path={'bottles/picture'}
|
path={'bottles/picture'}
|
||||||
name='picture'
|
name='picture'
|
||||||
id='picture'
|
id='picture'
|
||||||
|
accept='image/*'
|
||||||
|
capture
|
||||||
schema={{
|
schema={{
|
||||||
size: undefined,
|
size: undefined,
|
||||||
formats: undefined,
|
formats: undefined,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user