From 9d647ee90c2a19df628cc87b972a06d043beca4b Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Mon, 14 Sep 2020 10:55:49 +0300 Subject: [PATCH] fix: load editor tabs conditionally on mobile --- client/src/templates/Challenges/classic/MobileLayout.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/templates/Challenges/classic/MobileLayout.js b/client/src/templates/Challenges/classic/MobileLayout.js index 363ef55d740..6447249ca76 100644 --- a/client/src/templates/Challenges/classic/MobileLayout.js +++ b/client/src/templates/Challenges/classic/MobileLayout.js @@ -8,6 +8,7 @@ import { createStructuredSelector } from 'reselect'; import { currentTabSelector, moveToTab } from '../redux'; import { bindActionCreators } from 'redux'; import EditorTabs from './EditorTabs'; +import { showUpcomingChanges } from '../../../../config/env.json'; const mapStateToProps = createStructuredSelector({ currentTab: currentTabSelector @@ -67,7 +68,7 @@ class MobileLayout extends Component { {instructions} - + {showUpcomingChanges && } {editor}