l-min-components 1.7.1566 → 1.7.1567
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
|
@@ -24,7 +24,7 @@ import useReportUtils from "../hooks/useRreportUtils";
|
|
|
24
24
|
import GrammarV2 from "./components/Grammar.v2";
|
|
25
25
|
import useTranslation from "../../../hooks/useTranslation.jsx";
|
|
26
26
|
import wordStore from "../../../mc/wordStore.json";
|
|
27
|
-
|
|
27
|
+
import Comprehension from "./components/Comprehension.jsx";
|
|
28
28
|
const FullAnalysis = ({ data, onClose, accountType }) => {
|
|
29
29
|
const { findText } = useTranslation(wordStore);
|
|
30
30
|
const { setRightLayout, setCenterLayoutStyle } = useContext(OutletContext);
|
|
@@ -244,9 +244,9 @@ const FullAnalysis = ({ data, onClose, accountType }) => {
|
|
|
244
244
|
setCheckingPlayingAudio={setCheckingPlayingAudio}
|
|
245
245
|
/>
|
|
246
246
|
)}
|
|
247
|
-
{
|
|
247
|
+
{selectedModel?.id === "comprehension" && (
|
|
248
248
|
<Comprehension Aidata={selectedModel} />
|
|
249
|
-
)}
|
|
249
|
+
)}
|
|
250
250
|
{selectedModel?.id === "grammar" && (
|
|
251
251
|
<>
|
|
252
252
|
{selectedModel?.version === 2 ? (
|
|
@@ -474,13 +474,13 @@ const quixSelectedModel = (response, aiData) => {
|
|
|
474
474
|
objectData["grammar"] = [findData];
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
-
|
|
478
|
-
|
|
477
|
+
if (aiData?.comprehension?.length && aiData?.comprehension) {
|
|
478
|
+
const attemptResp = aiData?.comprehension?.[0]?.attempt_data_batch?.[0];
|
|
479
479
|
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
480
|
+
if (attemptResp?.recording?.id === audioId || attemptResp?.id === audioId) {
|
|
481
|
+
objectData["comprehension"] = aiData?.comprehension;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
484
|
|
|
485
485
|
return objectData;
|
|
486
486
|
};
|
|
@@ -73,13 +73,13 @@ const ReportQuestions = ({
|
|
|
73
73
|
onSwitchQuestion,
|
|
74
74
|
loading,
|
|
75
75
|
mainTitle,
|
|
76
|
-
navControl = {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
},
|
|
76
|
+
// navControl = {
|
|
77
|
+
// on: false,
|
|
78
|
+
// disablePrev: false,
|
|
79
|
+
// disableNext: false,
|
|
80
|
+
// onNext: () => {},
|
|
81
|
+
// onPrev: () => {},
|
|
82
|
+
// },
|
|
83
83
|
}) => {
|
|
84
84
|
const { findText } = useTranslation(wordStore);
|
|
85
85
|
const [questionList, setQuestionList] = useState([]);
|
|
@@ -260,7 +260,7 @@ const ReportQuestions = ({
|
|
|
260
260
|
<InfoIcon2 />
|
|
261
261
|
</ScoreHeader>
|
|
262
262
|
<QuestionNav>
|
|
263
|
-
{navControl?.on ? (
|
|
263
|
+
{/* {navControl?.on ? (
|
|
264
264
|
<>
|
|
265
265
|
<button
|
|
266
266
|
disabled={navControl.disablePrev}
|
|
@@ -288,7 +288,16 @@ const ReportQuestions = ({
|
|
|
288
288
|
<NavForword disabled={!nextId} />
|
|
289
289
|
</button>
|
|
290
290
|
</>
|
|
291
|
-
)}
|
|
291
|
+
)} */}
|
|
292
|
+
|
|
293
|
+
<button disabled={!prevId} onClick={handlePrev}>
|
|
294
|
+
<NavBack disabled={!prevId} />
|
|
295
|
+
{findText("Previous question")}
|
|
296
|
+
</button>
|
|
297
|
+
<button disabled={!nextId} onClick={handleNext}>
|
|
298
|
+
{findText("Next question")}
|
|
299
|
+
<NavForword disabled={!nextId} />
|
|
300
|
+
</button>
|
|
292
301
|
</QuestionNav>
|
|
293
302
|
</ScoreHeaderContainer>
|
|
294
303
|
{/* {data && !hasAnswer && <ErrorHeader />} */}
|