Skip to content

Commit db96ff7

Browse files
committed
undo some changes meant for a different PR
1 parent e086697 commit db96ff7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

code-studio/src/js/progress.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
/* globals appOptions */
1+
/* globals dashboard, appOptions */
22

33
var clientState = require('./clientState');
4-
var StageProgress = require('./components/progress/stage_progress.jsx');
5-
var CourseProgress = require('./components/progress/course_progress.jsx');
64

75
var progress = module.exports;
86

@@ -118,7 +116,7 @@ progress.renderStageProgress = function (stageData, progressData, clientProgress
118116
var mountPoint = document.createElement('div');
119117
mountPoint.style.display = 'inline-block';
120118
$('.progress_container').replaceWith(mountPoint);
121-
ReactDOM.render(React.createElement(StageProgress, {
119+
ReactDOM.render(React.createElement(dashboard.StageProgress, {
122120
levels: combinedProgress,
123121
currentLevelIndex: currentLevelIndex
124122
}), mountPoint);
@@ -127,7 +125,7 @@ progress.renderStageProgress = function (stageData, progressData, clientProgress
127125
progress.renderCourseProgress = function (scriptData) {
128126
var mountPoint = document.createElement('div');
129127
$('.user-stats-block').prepend(mountPoint);
130-
ReactDOM.render(React.createElement(CourseProgress, {
128+
ReactDOM.render(React.createElement(dashboard.CourseProgress, {
131129
stages: scriptData.stages
132130
}), mountPoint);
133131
progress.populateProgress(scriptData.name);

0 commit comments

Comments
 (0)