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

Function FuncEditorField

xadmin-dashboard/src/editor/components/ConnectModal.js:7–18  ·  view source on GitHub ↗
({ input, label, meta, field, group: FieldGroup })

Source from the content-addressed store, hash-verified

5import CodeEditor from './CodeEditor'
6
7const FuncEditorField = ({ input, label, meta, field, group: FieldGroup }) => {
8 return (
9 <FieldGroup label={label} meta={meta} input={input} field={field}>
10 <Panel><CodeEditor
11 height="200"
12 language="javascript"
13 code={input.value}
14 onChange={input.onChange}
15 /></Panel>
16 </FieldGroup>
17 )
18}
19
20@DashboardWrap('dashboard.endpoint')
21class ConnectModal extends React.Component {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected