function warnNoop(publicInstance, callerName) { { var _constructor = publicInstance.constructor; var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass'; var warningKey = componentName + "." + callerName; if (didWarnStateUpdateForUnmountedComponent[warningKey]) { return; } error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName); didWarnStateUpdateForUnmountedComponent[warningKey] = true; } }
// A HOC version of <KeystoneProvider> const withKeystone = Component => { const WrappingComponent = props => ( <KeystoneProvider> <Component {...props} /> </KeystoneProvider> ); WrappingComponent.displayName = `WithKeystone(${Component.displayName || Component.name})`; hoistStatics(WrappingComponent, Component); return WrappingComponent; }
function getDisplayName(element) { if (element == null) { return '#empty'; } else if (typeof element === 'string' || typeof element === 'number') { return '#text'; } else if (typeof element.type === 'string') { return element.type; } else { var elementType = reactIs.isMemo(element) ? element.type.type : element.type; return elementType.displayName || elementType.name || 'Unknown'; } }
getIntervalSelectOptions() { return this.state.intervalmultipliers.map(interval => ( <SelectItem key={interval.value} id={interval.value}> {interval.displayName} </SelectItem> )); }
const getDisplayName = C => { return `withModalHandlers(${C.displayName || C.name || 'Component'})`; }
getProfile(profile) { // Normalize profile into one with {id, name, email} keys return { id: profile.id, name: profile.displayName, email: profile.emails[0].value } }
getProfile(profile) { // Normalize profile into one with {id, name, email} keys return { id: profile.id, name: profile.displayName, email: (profile.emails && profile.emails[0].value) ? profile.emails[0].value : '' } }
getProfile(profile) { // Normalize profile into one with {id, name, email} keys return { id: profile.id, name: profile.displayName, email: profile._json.email } }
function getCurrentComponentErrorInfo(parentType) { var info = getDeclarationErrorAddendum(); if (!info) { var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name; if (parentName) { info = "\n\nCheck the top-level render call using <" + parentName + ">."; } } return info; }
function getName(type, instance) { var constructor = instance && instance.constructor; return type.displayName || constructor && constructor.displayName || type.name || constructor && constructor.name || null; }
function getWrappedName(outerType, innerType, wrapperName) { var functionName = innerType.displayName || innerType.name || ''; return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); }
// A HOC version of <KeystoneProvider> const withKeystone = Component => { const WrappingComponent = props => ( <KeystoneProvider> <Component {...props} /> </KeystoneProvider> ); WrappingComponent.displayName = `WithKeystone(${Component.displayName || Component.name})`; hoistStatics(WrappingComponent, Component); return WrappingComponent; }
function getWrappedName(outerType, innerType, wrapperName) { var functionName = innerType.displayName || innerType.name || ''; return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); }
function getWrappedName(outerType, innerType, wrapperName) { var functionName = innerType.displayName || innerType.name || ''; return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); }
function getWrappedName(outerType, innerType, wrapperName) { var functionName = innerType.displayName || innerType.name || ''; return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); }