drinkingvideogames/mixer

View on GitHub
src/components/admin/modals/new-genre.jsx

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 2 of 2 total issues

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

render () {
let input = {}
return (
<div id='newGenreModal' className='modal modal-fixed-footer'>
<div className='modal-content'>
Severity: Minor
Found in src/components/admin/modals/new-genre.jsx - About 1 hr to fix

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

    <div className='input-field col s12'>
    <input placeholder='Genre Name' id='game_name' type='text' className='validate' ref={node => {
    input.genreName = node
    }} />
    <label htmlFor='game_name'>Game Name</label>
    Severity: Major
    Found in src/components/admin/modals/new-genre.jsx and 2 other locations - About 2 hrs to fix
    src/components/admin/modals/new-drinking-game.jsx on lines 21..26
    src/components/admin/modals/new-drinking-game.jsx on lines 27..32

    There are no issues that match your filters.

    Category
    Status