src/containers/Header/NotificationsTray/index.jsx
File index.jsx
has 278 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import styles from './style.postcss';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Set } from 'immutable';
Function _renderCalloutPopupContent
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_renderCalloutPopupContent() {
const { notifications } = this.props;
const { viewingNotification } = this.state;
const headerBtnClassName = classnames(styles.NotificationsTray_popup_heading_btn,
testClass('mark-as-read'),
Function _renderNotificationFooter
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_renderNotificationFooter(notifications) {
const markBtnClassName = classnames(styles.NotificationsTray_notification_footer_mark,
testClass('notification-mark'));
if (this.state.isMarkingMode) {
return <div className={styles.NotificationsTray_notification_footer}>
Function mapDispatchToProps
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapDispatchToProps(dispatch) {
const markAsReadDispatchConfig = Config.get('notificationsTray').markAsRead.dispatch;
const apiUrl = buildUrl(markAsReadDispatchConfig.apiUrl);
const method = markAsReadDispatchConfig.method;
return {