{ this.renderHint(hint, this.makeHint) }
@@ -110,36 +111,32 @@ export default class ToolPanel extends PureComponent {
)
}
-
+
+
-
);
diff --git a/common/app/routes/Challenges/challenges.less b/common/app/routes/Challenges/challenges.less
index 1e8fdcf89f..0fbf31c5af 100644
--- a/common/app/routes/Challenges/challenges.less
+++ b/common/app/routes/Challenges/challenges.less
@@ -124,12 +124,12 @@
}
@keyframes skeletonShimmer{
- 0% {
- transform: translateX(-48px);
- }
- 100% {
- transform: translateX(1000px);
- }
+ 0% {
+ transform: translateX(-48px);
+ }
+ 100% {
+ transform: translateX(1000px);
+ }
}
.@{ns}-shimmer {
diff --git a/common/app/routes/Challenges/redux/bug-epic.js b/common/app/routes/Challenges/redux/bug-epic.js
deleted file mode 100644
index b75715605f..0000000000
--- a/common/app/routes/Challenges/redux/bug-epic.js
+++ /dev/null
@@ -1,82 +0,0 @@
-import { ofType } from 'redux-epic';
-import {
- types,
- closeBugModal
-} from '../redux';
-
-import { filesSelector } from '../../../files';
-import { currentChallengeSelector } from '../../../redux';
-
-function filesToMarkdown(files = {}) {
- const moreThenOneFile = Object.keys(files).length > 1;
- return Object.keys(files).reduce((fileString, key) => {
- const file = files[key];
- if (!file) {
- return fileString;
- }
- const fileName = moreThenOneFile ? `\\ file: ${file.contents}` : '';
- const fileType = file.ext;
- return fileString +
- '\`\`\`' +
- fileType +
- '\n' +
- fileName +
- '\n' +
- file.contents +
- '\n' +
- '\`\`\`\n\n';
- }, '\n');
-}
-
-export default function bugEpic(actions, { getState }, { window }) {
- return actions::ofType(types.openIssueSearch, types.createIssue)
- .map(({ type }) => {
- const state = getState();
- const files = filesSelector(state);
- const challengeName = currentChallengeSelector(state);
- const {
- navigator: { userAgent },
- location: { href }
- } = window;
- let titleText = challengeName;
- if (type === types.openIssueSearch) {
- window.open(
- 'https://forum.freecodecamp.org/search?q=' +
- window.encodeURIComponent(titleText)
- );
- } else {
- titleText = 'Need assistance in ' + challengeName;
- let textMessage = [
- '#### Challenge Name\n',
- '[',
- challengeName,
- '](',
- href,
- ') has an issue.\n',
- '#### Issue Description\n',
- '\n\n\n',
- '#### Browser Information\n',
- '\n',
- 'User Agent is: