l-min-components 1.7.1486 → 1.7.1488
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/header/index.jsx +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/questions/essayScripted.jsx +8 -4
- package/src/components/reportsComponents/reportQuestions/questions/essayUnscripted.jsx +6 -4
- package/src/components/useAudioPlayer/index.jsx +2 -1
package/package.json
CHANGED
|
@@ -469,7 +469,7 @@ const HeaderComponent = (props) => {
|
|
|
469
469
|
window.location.href = helpUrl;
|
|
470
470
|
}}
|
|
471
471
|
className={
|
|
472
|
-
window.location.pathname.includes("help
|
|
472
|
+
window.location.pathname.includes("help") ? "active" : ""
|
|
473
473
|
}
|
|
474
474
|
>
|
|
475
475
|
<QuestionMark /> {props?.findText("Help")}
|
|
@@ -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">
|