huridocs/uwazi

View on GitHub
app/react/Layout/ToggleDisplay.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Definition for rule 'node/no-restricted-import' was not found.
Open

import PropTypes from 'prop-types';
Severity: Minor
Found in app/react/Layout/ToggleDisplay.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Missing an explicit type attribute for button
Open

        {this.state.show && <button onClick={this.hide}>{this.props.hideLabel}</button>}
Severity: Minor
Found in app/react/Layout/ToggleDisplay.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Missing an explicit type attribute for button
Open

        {!this.state.show && <button onClick={this.show}>{this.props.showLabel}</button>}
Severity: Minor
Found in app/react/Layout/ToggleDisplay.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Prefer named exports.
Open

export default ToggleDisplay;
Severity: Minor
Found in app/react/Layout/ToggleDisplay.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status