MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / FieldWrapComponent

Function FieldWrapComponent

packages/xadmin-form/src/builder.js:6–14  ·  view source on GitHub ↗
({ fieldComponent: FieldComponent, group: FieldGroup, ...props })

Source from the content-addressed store, hash-verified

4import { C } from 'xadmin-ui'
5
6const FieldWrapComponent = ({ fieldComponent: FieldComponent, group: FieldGroup, ...props }) => {
7 return FieldComponent.withGroup ? (
8 <FieldComponent {...props} group={FieldGroup} />
9 ) : (
10 <FieldGroup {...props} >
11 <FieldComponent {...props} group={FieldGroup} />
12 </FieldGroup>
13 )
14}
15
16const defaultUIRender = (fields, option) => {
17 return fields.map(field => fieldBuilder(field, option))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected