Skip to content

Commit 41ea30e

Browse files
feat: add dummy progress bar component
1 parent 1e5e5a9 commit 41ea30e

File tree

6 files changed

+21
-1
lines changed

6 files changed

+21
-1
lines changed

src/components/ProgressBar/index.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from 'react';
2+
3+
export const ProgressBar = () => (
4+
<div><h2>Progress Bar</h2></div>
5+
);
6+
7+
export default ProgressBar;

src/views/PeerAssessmentView/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22

33
import { useIsORAConfigLoaded } from 'data/services/lms/hooks/selectors';
4+
import ProgressBar from 'components/ProgressBar';
45

56
import AssessmentContentLayout from './AssessmentContentLayout';
67
import AssessmentActions from './AssessmentActions';
@@ -9,6 +10,7 @@ export const PeerAssessmentView = () => {
910
const isORAConfigLoaded = useIsORAConfigLoaded();
1011
return (
1112
<>
13+
<ProgressBar />
1214
{isORAConfigLoaded && (<AssessmentContentLayout />)}
1315
<AssessmentActions />
1416
</>

src/views/SelfAssessmentView/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22

33
import { useIsORAConfigLoaded } from 'data/services/lms/hooks/selectors';
4+
import ProgressBar from 'components/ProgressBar';
45

56
import AssessmentContentLayout from './AssessmentContentLayout';
67
import AssessmentActions from './AssessmentActions';
@@ -9,6 +10,7 @@ export const SelfAssessmentView = () => {
910
const isORAConfigLoaded = useIsORAConfigLoaded();
1011
return (
1112
<>
13+
<ProgressBar />
1214
{isORAConfigLoaded && (<AssessmentContentLayout />)}
1315
<AssessmentActions />
1416
</>

src/views/StudentTrainingView/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22

3+
import ProgressBar from 'components/ProgressBar';
34
import { useIsORAConfigLoaded } from 'data/services/lms/hooks/selectors';
45

56
import AssessmentContentLayout from './AssessmentContentLayout';
@@ -9,6 +10,7 @@ export const StudentTrainingView = () => {
910
const isORAConfigLoaded = useIsORAConfigLoaded();
1011
return (
1112
<>
13+
<ProgressBar />
1214
{isORAConfigLoaded && (<AssessmentContentLayout />)}
1315
<AssessmentActions />
1416
</>

src/views/SubmissionView/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22

3+
import ProgressBar from 'components/ProgressBar';
34
import SubmissionContentLayout from './SubmissionContentLayout';
45
import SubmissionActions from './SubmissionActions';
56
import useSubmissionViewHooks from './hooks';
@@ -18,6 +19,7 @@ export const SubmissionView = () => {
1819
} = useSubmissionViewHooks();
1920
return (
2021
<>
22+
<ProgressBar />
2123
<SubmissionContentLayout
2224
submission={submission}
2325
oraConfigData={oraConfigData}

src/views/XBlockView/index.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import React from 'react';
2+
import ProgressBar from 'components/ProgressBar';
23

34
export const XBlockView = () => (
4-
<div>XBlock View</div>
5+
<div>
6+
<ProgressBar />
7+
<h1>XBlock View</h1>
8+
Testing react in the xblock
9+
</div>
510
);
611

712
export default XBlockView;

0 commit comments

Comments
 (0)