l-min-components 1.7.1523 → 1.7.1525
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/components/index.js
CHANGED
|
@@ -34,7 +34,6 @@ export { default as TextEditorNew } from "./TextEditor2";
|
|
|
34
34
|
export { default as MessageAddon } from "./messageAddon/messages";
|
|
35
35
|
export { default as InstructorAccountSwitcher } from "./instructorAccountSwitcher";
|
|
36
36
|
export { default as InstructorRightBar } from "./fileRightBar/instructorRightBar";
|
|
37
|
-
|
|
38
37
|
export { default as EnterpriseRightBar } from "./fileRightBar/enterpriseRightBar";
|
|
39
38
|
export { default as FullPageLoader } from "./fullPageLoader";
|
|
40
39
|
export { default as AdminAppMainLayout } from "./AdminAppMainLayout";
|
|
@@ -107,11 +107,13 @@ const ReportQuestions = ({
|
|
|
107
107
|
accountType === "instructor-personal" ||
|
|
108
108
|
accountType === "instructor-affiliate"
|
|
109
109
|
)
|
|
110
|
-
setInstructorScore(answerData?.grading_data?.score);
|
|
111
|
-
else setInstructorScore(answerData?.score);
|
|
112
|
-
|
|
110
|
+
setInstructorScore(answerData?.grading_data?.score || 0);
|
|
111
|
+
else setInstructorScore(answerData?.score || 0);
|
|
112
|
+
|
|
113
|
+
setAIScore(answerData?.ai_score || 0);
|
|
113
114
|
}
|
|
114
115
|
}, [findedQuestion?.question_id, questionActivityID, answerData]);
|
|
116
|
+
|
|
115
117
|
const handleScore = async (value) => {
|
|
116
118
|
if (!questionActivityID || !enterpriseId || !answerData?.answer?.session_id)
|
|
117
119
|
return;
|
|
@@ -154,7 +156,9 @@ const ReportQuestions = ({
|
|
|
154
156
|
};
|
|
155
157
|
return (
|
|
156
158
|
<Container>
|
|
157
|
-
{gradeQuestionData?.loading
|
|
159
|
+
{(gradeQuestionData?.loading || loading) && (
|
|
160
|
+
<FullPageLoader fixed hasBackground />
|
|
161
|
+
)}
|
|
158
162
|
{toggleGrade && (
|
|
159
163
|
<GradingModal
|
|
160
164
|
key={questionActivityID}
|
|
@@ -228,9 +232,7 @@ const ReportQuestions = ({
|
|
|
228
232
|
{/* {data && !hasAnswer && <ErrorHeader />} */}
|
|
229
233
|
|
|
230
234
|
{loading ? (
|
|
231
|
-
<Loader>
|
|
232
|
-
<FullPageLoader isSectionLoader />
|
|
233
|
-
</Loader>
|
|
235
|
+
<Loader></Loader>
|
|
234
236
|
) : (
|
|
235
237
|
<QuestionWrapper>
|
|
236
238
|
<QuestionContent>
|