MCPcopy Index your code
hub / github.com/flyfloor/react-component / close

Function close

component/Modal.js:36–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 },
35
36 close(){
37 const {onClose} = this.props
38 if (onClose && !onClose()) return
39 this.setState({
40 display: false
41 });
42 },
43
44 handleConfirm(){
45 if (this.props.onConfirm()) this.close();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…