MCPcopy Create free account
hub / github.com/decaporg/decap-cms / renderAddUI

Function renderAddUI

packages/decap-cms-ui-default/src/ObjectWidgetTopBar.js:75–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 }
74
75 renderAddUI() {
76 if (!this.props.allowAdd) {
77 return null;
78 }
79 if (this.props.types && this.props.types.size > 0) {
80 return this.renderTypesDropdown(this.props.types);
81 } else {
82 return this.renderAddButton();
83 }
84 }
85
86 renderTypesDropdown(types) {
87 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected