Kalkuli/2018.2-Kalkuli_Front-End

View on GitHub
src/components/Login/Login.js

Summary

Maintainability
A
1 hr
Test Coverage

Function Login has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const Login = (props) => {

  if(props.registration === 'fail')
    return <Confirmation  content="Não foi possível logar, confira seus dados" 
                          onConfirmOk={props.onConfirmOk} 
Severity: Minor
Found in src/components/Login/Login.js - About 1 hr to fix

    There should be no space before '='
    Open

                          style ={{color: inputs[key].color}}>
    Severity: Minor
    Found in src/components/Login/Login.js by eslint

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

    img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.
    Open

                                <img src={eyeImg} onClick={props.togglePass} className="see-password"/> : null
    Severity: Minor
    Found in src/components/Login/Login.js by eslint

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

    There are no issues that match your filters.

    Category
    Status