src/decorators/with-visibility.js
Function withVisibilityDecorator
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function withVisibilityDecorator(Component) {
class withVisibility extends React.Component {
// Add a specific display name
static displayName = `${getDisplayName(Component)}WithVisibility`;