Remove unnecessary Fragment component.

This commit is contained in:
Caio Cotts 2024-06-07 21:21:06 -04:00 committed by Joe Stump
parent 330a267368
commit 6f94ed65d2
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -1,5 +1,3 @@
import React, { Fragment } from 'react'
import {
Edit,
FormDataConsumer,
@ -17,10 +15,10 @@ import { isWritable, Title } from '../common'
const SyncFragment = ({ formData, variant, ...rest }) => {
return (
<Fragment>
<>
{formData.path && <BooleanInput source="sync" {...rest} />}
{formData.path && <TextField source="path" {...rest} />}
</Fragment>
</>
)
}