From 3a191fcf467255426f8a1630679b76c5131cd4db Mon Sep 17 00:00:00 2001 From: Todd Chaffee Date: Thu, 22 Mar 2018 13:31:09 -0300 Subject: [PATCH] fix: remove flash saying JS is disabled --- common/app/routes/Challenges/Preview.jsx | 56 ++++---------------- common/app/routes/Challenges/challenges.less | 8 --- 2 files changed, 11 insertions(+), 53 deletions(-) diff --git a/common/app/routes/Challenges/Preview.jsx b/common/app/routes/Challenges/Preview.jsx index 6457e8114c..f47f6fb0c7 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 ( +
+