Skip to content

Instantly share code, notes, and snippets.

View norayr93's full-sized avatar

Norayr Ghukasyan norayr93

  • Yerevan, Armenia
View GitHub Profile
norayr93 /
Created February 10, 2019 07:57 — forked from cdiggins/
React Best Practices
// This component is for creating and editing ctaBoxes. It openes a modal.
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import linkifyIt from 'linkify-it';
import { stopPropagation } from '../../../utils/common';
import { getFirstIcon } from '../../../utils/toolbar';
import Option from '../../../components/Option';
import { Dropdown, DropdownOption } from '../../../components/Dropdown';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Header from './Header';
import UserAvatar from './UserAvatar';
import EventsSection from './UserEvents';
import { addUser } from '../actions/userActions';
class EventDashboardPage extends Component {
componentDidMount = () => {