diff --git a/common/app/routes/Challenges/Bug-Modal.jsx b/common/app/routes/Challenges/Bug-Modal.jsx
deleted file mode 100644
index 3b2a48ae3f..0000000000
--- a/common/app/routes/Challenges/Bug-Modal.jsx
+++ /dev/null
@@ -1,95 +0,0 @@
-import React, { PureComponent } from 'react';
-import PropTypes from 'prop-types';
-import { connect } from 'react-redux';
-import { Button, Modal } from 'react-bootstrap';
-
-import ns from './ns.json';
-import {
- createIssue,
- openIssueSearch,
- closeBugModal,
-
- bugModalSelector
-} from './redux';
-
-const mapStateToProps = state => ({ isOpen: bugModalSelector(state) });
-const mapDispatchToProps = { createIssue, openIssueSearch, closeBugModal };
-const bugLink = 'http://forum.freecodecamp.org/t/how-to-report-a-bug/19543';
-
-const propTypes = {
- closeBugModal: PropTypes.func,
- createIssue: PropTypes.func,
- isOpen: PropTypes.bool,
- openIssueSearch: PropTypes.func
-};
-
-export class BugModal extends PureComponent {
- render() {
- const {
- isOpen,
- closeBugModal,
- openIssueSearch,
- createIssue
- } = this.props;
- return (
-
-
- Did you find a bug?
-
- ×
-
-
-
-
- Before you submit a new issue,
- read "How to Report a Bug" and
- browse other issues with this challenge.
-
-
-
-
-
-
-
- );
- }
-}
-
-BugModal.displayName = 'BugModal';
-BugModal.propTypes = propTypes;
-
-export default connect(mapStateToProps, mapDispatchToProps)(BugModal);
diff --git a/common/app/routes/Challenges/Help-Modal.jsx b/common/app/routes/Challenges/Help-Modal.jsx
index fa6ad26931..4ca4ca0126 100644
--- a/common/app/routes/Challenges/Help-Modal.jsx
+++ b/common/app/routes/Challenges/Help-Modal.jsx
@@ -6,20 +6,18 @@ import { Button, Modal } from 'react-bootstrap';
import ns from './ns.json';
import {
createQuestion,
- openHelpChatRoom,
closeHelpModal,
helpModalSelector
} from './redux';
import { RSA } from '../../../utils/constantStrings.json';
const mapStateToProps = state => ({ isOpen: helpModalSelector(state) });
-const mapDispatchToProps = { createQuestion, openHelpChatRoom, closeHelpModal };
+const mapDispatchToProps = { createQuestion, closeHelpModal };
const propTypes = {
- closeHelpModal: PropTypes.func,
- createQuestion: PropTypes.func,
- isOpen: PropTypes.bool,
- openHelpChatRoom: PropTypes.func
+ closeHelpModal: PropTypes.func.isRequired,
+ createQuestion: PropTypes.func.isRequired,
+ isOpen: PropTypes.bool
};
export class HelpModal extends PureComponent {
@@ -27,7 +25,6 @@ export class HelpModal extends PureComponent {
const {
isOpen,
closeHelpModal,
- openHelpChatRoom,
createQuestion
} = this.props;
return (
@@ -44,20 +41,11 @@ export class HelpModal extends PureComponent {
-
- If you've already tried the Read-Search-Ask method,
- then you can ask for help on the freeCodeCamp forum.
+
+ If you've already tried the
+ Read-Search-Ask
+ method, then you can ask for help on the freeCodeCamp forum.
-
-