client/components/Admin/index.jsx
Function render
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 &&
File index.jsx
has 257 lines of code (exceeds 250 allowed). Consider refactoring. Open
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';