app/assets/javascripts/components/timeline/TrainingModules/TrainingModules.jsx
Function trainingSelector
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
trainingSelector() {
const MultiValueRemove = (props) => {
return (
<components.MultiValueRemove {...props}>
<components.CrossIcon aria-hidden={false} aria-label={'Remove Module'} />
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (this.props.editable) {
return this.trainingSelector();
}