import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import { Button, Modal } from 'react-bootstrap'; import PureComponent from 'react-pure-render/component'; import { createIssue, openIssueSearch, closeBugModal } from '../redux/actions'; const mapStateToProps = state => ({ isOpen: state.challengesApp.isBugOpen }); const actions = { createIssue, openIssueSearch, closeBugModal }; const bugLink = 'https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/' + 'FreeCodeCamp-Report-Bugs'; export class BugModal extends PureComponent { static propTypes = { isOpen: PropTypes.bool, closeBugModal: PropTypes.func, openIssueSearch: PropTypes.func, createIssue: PropTypes.func }; render() { const { isOpen, closeBugModal, openIssueSearch, createIssue } = this.props; return ( Did you find a bug? ×

Before you submit a new issue, read "Help I've Found a Bug" and browse other issues with this challenge.

); } } export default connect(mapStateToProps, actions)(BugModal);