diff --git a/common/app/routes/Challenges/Preview.jsx b/common/app/routes/Challenges/Preview.jsx
index 6457e8114c3404..f47f6fb0c7e377 100644
--- a/common/app/routes/Challenges/Preview.jsx
+++ b/common/app/routes/Challenges/Preview.jsx
@@ -1,54 +1,20 @@
-import React, { PureComponent } from 'react';
-import PropTypes from 'prop-types';
-import { connect } from 'react-redux';
+import React from 'react';
import ns from './ns.json';
-import { isJSEnabledSelector } from './redux';
-import {Alert} from 'react-bootstrap';
-
const mainId = 'fcc-main-frame';
-const mapStateToProps = state => ({
- isJSEnabled: isJSEnabledSelector(state)
-});
-const mapDispatchToProps = null;
-const propTypes = {
- isJSEnabled: PropTypes.bool
+const Preview = () => {
+ return (
+
+
+
+ );
};
-export class Preview extends PureComponent {
- render() {
- const {
- isJSEnabled
- } = this.props;
- return (
-
- {
- !isJSEnabled && (
-
-
- JavaScript is disabled. Execute code to enable
-
-
- )
- }
-
-
- );
- }
-}
-
-Preview.propTypes = propTypes;
Preview.displayName = 'Preview';
-export default connect(
- mapStateToProps,
- mapDispatchToProps
-)(Preview);
+export default Preview;
diff --git a/common/app/routes/Challenges/challenges.less b/common/app/routes/Challenges/challenges.less
index 9f44ca3edbc906..2a70198e6902db 100644
--- a/common/app/routes/Challenges/challenges.less
+++ b/common/app/routes/Challenges/challenges.less
@@ -186,14 +186,6 @@
.max-element-height();
width: 100%;
overflow-y: hidden;
-
- .js-alert-wrapper {
- .max-element-height();
- z-index: 5;
- position: fixed;
- width: 100%
- }
-
}
.@{ns}-preview-frame {