l-min-components 1.7.1487 → 1.7.1489
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 +1 -1
- package/src/components/reportsComponents/fullAnalysis/components/Grammar.v2.jsx +29 -27
- package/src/components/reportsComponents/fullAnalysis/question.data.jsx +1337 -0
- package/src/components/reportsComponents/reportQuestions/components/responseAudio.jsx +5 -9
- package/src/components/reportsComponents/reportQuestions/questions/dialogueScripted.jsx +1 -0
- package/src/components/reportsComponents/reportQuestions/questions/dialogueUnscripted.jsx +1 -0
- package/src/components/reportsComponents/reportQuestions/questions/essayScripted.jsx +10 -4
- package/src/components/reportsComponents/reportQuestions/questions/essayUnscripted.jsx +10 -4
- package/src/components/reportsComponents/reportQuestions/questions/quizScripted.jsx +1 -0
- package/src/components/reportsComponents/reportQuestions/questions/quizUnsripted.jsx +1 -0
- package/src/components/reportsComponents/reportQuestions/questions/reading.jsx +2 -0
- package/src/components/reportsComponents/reportQuestions/questions/soundPlay.jsx +2 -0
- package/src/components/useAudioPlayer/index.jsx +2 -1
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ import useLanguages from "../api/useLanguage";
|
|
|
30
30
|
const GrammarV2 = ({ Aidata, isPersonal }) => {
|
|
31
31
|
const [selectedSection, setSelectedSection] = useState(1);
|
|
32
32
|
|
|
33
|
-
const [selectedOperationIndex, setSelectedOperationIndex] = useState(
|
|
33
|
+
const [selectedOperationIndex, setSelectedOperationIndex] = useState(1);
|
|
34
34
|
const [transalate, setTranslate] = useState(null);
|
|
35
35
|
|
|
36
36
|
const { translateLangData, handleTranslate } = useLanguages();
|
|
@@ -211,33 +211,35 @@ const GrammarV2 = ({ Aidata, isPersonal }) => {
|
|
|
211
211
|
</GrammarHeader>
|
|
212
212
|
<GrammarV2Content>
|
|
213
213
|
<GrammarV2ContentWrapper>
|
|
214
|
-
{selectedSection === 2 &&
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
const list = res?.data?.data?.map((item, idx) => {
|
|
230
|
-
const text = feedbackToTranslate[idx];
|
|
231
|
-
|
|
232
|
-
return { text, value: item };
|
|
214
|
+
{selectedSection === 2 &&
|
|
215
|
+
isPersonal &&
|
|
216
|
+
feedbackIssues?.length > 0 && (
|
|
217
|
+
<TranslateDropdown
|
|
218
|
+
loading={translateLangData?.loading}
|
|
219
|
+
onChange={async (lang) => {
|
|
220
|
+
const code = lang?.code;
|
|
221
|
+
if (code === "en" || !lang) {
|
|
222
|
+
setTranslate(null);
|
|
223
|
+
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
const res = await handleTranslate({
|
|
227
|
+
phrase: feedbackToTranslate,
|
|
228
|
+
language: code,
|
|
233
229
|
});
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
230
|
+
if (res?.data) {
|
|
231
|
+
const list = res?.data?.data?.map((item, idx) => {
|
|
232
|
+
const text = feedbackToTranslate[idx];
|
|
233
|
+
|
|
234
|
+
return { text, value: item };
|
|
235
|
+
});
|
|
236
|
+
setTranslate(list);
|
|
237
|
+
} else {
|
|
238
|
+
setTranslate(null);
|
|
239
|
+
}
|
|
240
|
+
}}
|
|
241
|
+
/>
|
|
242
|
+
)}
|
|
241
243
|
{selectedSection === 1 && selectOperation && (
|
|
242
244
|
<div className="feedback_section">
|
|
243
245
|
<div className="failed">
|