huridocs/uwazi

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

Summary

Maintainability
A
0 mins
Test Coverage
A
95%

Declare only one React component per file
Open

const Close = ({ onClick }) => (
Severity: Minor
Found in app/react/Layout/Modal.js by eslint

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

Prefer named exports.
Open

export default class Modal extends Component {
Severity: Minor
Found in app/react/Layout/Modal.js by eslint

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

Declare only one React component per file
Open

const Footer = ({ children }) => <div className="modal-footer">{children}</div>;
Severity: Minor
Found in app/react/Layout/Modal.js by eslint

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

Declare only one React component per file
Open

const Title = ({ children }) => <h4 className="modal-title">{children}</h4>;
Severity: Minor
Found in app/react/Layout/Modal.js by eslint

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

Declare only one React component per file
Open

const Header = ({ children }) => <div className="modal-header">{children}</div>;
Severity: Minor
Found in app/react/Layout/Modal.js by eslint

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

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

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

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

Declare only one React component per file
Open

const Body = ({ children }) => <div className="modal-body">{children}</div>;
Severity: Minor
Found in app/react/Layout/Modal.js by eslint

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

Export statements should appear at the end of the file
Open

export default class Modal extends Component {
Severity: Minor
Found in app/react/Layout/Modal.js by eslint

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

propType "children" is not required, but has no corresponding defaultProps declaration.
Open

  children: childrenType,
Severity: Minor
Found in app/react/Layout/Modal.js by eslint

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

There are no issues that match your filters.

Category
Status