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

Function FormLayout

xadmin-dashboard/src/editor/components/PropForm.js:32–42  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

30}
31
32const FormLayout = (props) => {
33 const { children, invalid, handleSubmit, submitSucceeded, submitting, isCreate } = props
34 const icon = submitting ? 'spinner fa-spin' : 'floppy-o'
35 return (
36 <form>
37 {children}
38 <Button type="submit" disabled={invalid || submitting} onClick={handleSubmit} bsStyle="primary" block>
39 <Icon name={icon}/> 保存</Button>
40 </form>
41 )
42}
43
44class CellProps extends React.Component {
45

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected