Showing 7 of 7 total issues
Function render
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
render () { const iconImage = this.input['iconImage'] const image = this.input['image'] const iconDrop = iconImage && iconImage.preview ? <img className='image-preview' src={iconImage.preview} />
Similar blocks of code found in 2 locations. Consider refactoring. Open
<div className='input-field col s12 m6'> <input placeholder='/game/:slug' id='game_slug' type='text' className='validate' ref={node => { this.input.gameUrl = node }} /> <label htmlFor='game_slug'>Game Slug</label>
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
<div className='input-field col s12 m6'> <input placeholder='Game Name' id='game_name' type='text' className='validate' ref={node => { this.input.gameName = node }} /> <label htmlFor='game_name'>Game Name</label>
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
<div className='col s12 m6'> <Dropzone style={dropStyles} onDrop={this.onDrop.bind(this, 'image')} multiple={false} accept={'image/*'}> {imageDrop} </Dropzone> </div>
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
<div className='col s12 m6'> <Dropzone style={dropStyles} onDrop={this.onDrop.bind(this, 'iconImage')} multiple={false} accept={'image/*'}> {iconDrop} </Dropzone> </div>
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
const iconDrop = iconImage && iconImage.preview ? <img className='image-preview' src={iconImage.preview} /> : <div className='image-preview'>Click or drop to upload Icon Image</div>
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
const imageDrop = image && image.preview ? <img className='image-preview' src={image.preview} /> : <div className='image-preview'>Click or drop to upload Main Image</div>
- Read upRead up