src/components/Timetable.jsx
Function render
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const layout = isScreenLarge(this.props.screenSize) ? this.props.layout : 'vertical'
const dayCount = (this.props.days7 || isScreenSmall(this.props.screenSize) ? 7 : 5)
const timeline = createTimeline(this.props.grid)
Function createDayEvents
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createDayEvents (props, animationDirection, events) {
// warn: mutates the given value!
const hideFilteredEvent = (event) => {
if (!props.displayFilter[event.type]) {
event._appear = 'hide'