Remove unnecessary Fragment component.
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
import React, { Fragment } from 'react'
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Edit,
|
Edit,
|
||||||
FormDataConsumer,
|
FormDataConsumer,
|
||||||
@@ -17,10 +15,10 @@ import { isWritable, Title } from '../common'
|
|||||||
|
|
||||||
const SyncFragment = ({ formData, variant, ...rest }) => {
|
const SyncFragment = ({ formData, variant, ...rest }) => {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<>
|
||||||
{formData.path && <BooleanInput source="sync" {...rest} />}
|
{formData.path && <BooleanInput source="sync" {...rest} />}
|
||||||
{formData.path && <TextField source="path" {...rest} />}
|
{formData.path && <TextField source="path" {...rest} />}
|
||||||
</Fragment>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user