segunolalive/helloBooks

View on GitHub
client/components/Admin/index.jsx

Summary

Maintainability
B
4 hrs
Test Coverage

Function render has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    const imageUploading = this.state.cover && !this.state.book.cover;
    const imageUploaded = this.state.cover === null && this.state.book.cover;
    const bookFileUploading = this.state.bookFile && !this.state.book.bookFile;
    const bookFileUploaded = this.state.bookFile === null &&
Severity: Major
Found in client/components/Admin/index.jsx - About 2 hrs to fix

    File index.jsx has 257 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import React, { Component } from 'react';
    import PropTypes from 'prop-types';
    import { connect } from 'react-redux';
    import { Redirect } from 'react-router-dom';
    import { Col, Row } from 'react-materialize';
    Severity: Minor
    Found in client/components/Admin/index.jsx - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status