UNPKG

@data-ui/xy-chart

Version:

A package of charts with standard x- and y- axes. https://williaster.github.io/data-ui

11 lines (9 loc) 429 B
"use strict"; exports.__esModule = true; exports.default = updateDisplayName; /* eslint-disable no-param-reassign */ function updateDisplayName(WrappedComponent, EnhancedComponent, hocName) { var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component'; EnhancedComponent.WrappedComponent = WrappedComponent; EnhancedComponent.displayName = hocName + "(" + wrappedComponentName + ")"; }