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

Function constructor

xadmin-dashboard/src/editor/components/CodeModal.js:10–13  ·  view source on GitHub ↗
(props, context)

Source from the content-addressed store, hash-verified

8class CodeModal extends React.Component {
9
10 constructor(props, context) {
11 super(props, context)
12 this.state = { show: false, code: JSON.stringify(props.params, null, 2) }
13 }
14
15 onClose = () => {
16 this.setState({ show: false })

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected