l-min-components 1.7.1567 → 1.7.1569
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/languageDropdown.jsx +17 -17
- package/src/components/messageAddon/assets/svg/check_circle.jsx +41 -0
- package/src/components/messageAddon/messages/messagebox/messageBubble.jsx +3 -4
- package/src/components/reportsComponents/fullAnalysis/data.grammar.v2.jsx +8504 -92
- package/src/components/reportsComponents/fullAnalysis/index.jsx +0 -6
- package/src/components/reportsComponents/fullAnalysis/style.jsx +0 -59
- package/src/components/reportsComponents/hooks/useRreportUtils.jsx +1 -41
- package/src/components/reportsComponents/reportQuestions/contants.jsx +0 -7
- package/src/components/reportsComponents/reportQuestions/index.jsx +0 -49
- package/src/components/reportsComponents/reportQuestions/questions/quizScripted.jsx +0 -1
- package/src/components/reportsComponents/fullAnalysis/components/Comprehension.jsx +0 -47
- package/src/components/reportsComponents/reportQuestions/questions/quizWritten.jsx +0 -97
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React, { useState, useEffect, useRef, useContext } from
|
|
2
|
-
import ReactFlagsSelect from
|
|
3
|
-
import useHeader from
|
|
4
|
-
import { OutletContext } from
|
|
5
|
-
import { useLocation } from
|
|
6
|
-
import usFlag from
|
|
7
|
-
import koreanFlag from
|
|
8
|
-
import { LanguageDropdownContainer } from
|
|
9
|
-
import { RiCloseCircleFill } from
|
|
10
|
-
import { HiSearch } from
|
|
11
|
-
import { InputSearchIcon } from
|
|
12
|
-
import { DebounceInput } from
|
|
13
|
-
import { languagesData } from
|
|
1
|
+
import React, { useState, useEffect, useRef, useContext } from 'react';
|
|
2
|
+
import ReactFlagsSelect from 'react-flags-select';
|
|
3
|
+
import useHeader from './getHeaderDetails';
|
|
4
|
+
import { OutletContext } from '..';
|
|
5
|
+
import { useLocation } from 'react-router-dom';
|
|
6
|
+
import usFlag from '../../assets/images/usFlag.png';
|
|
7
|
+
import koreanFlag from '../../assets/images/koreaFlag.png';
|
|
8
|
+
import { LanguageDropdownContainer } from './index.styled';
|
|
9
|
+
import { RiCloseCircleFill } from 'react-icons/ri';
|
|
10
|
+
import { HiSearch } from 'react-icons/hi';
|
|
11
|
+
import { InputSearchIcon } from './assets/svg/search';
|
|
12
|
+
import { DebounceInput } from 'react-debounce-input';
|
|
13
|
+
import { languagesData } from './languages';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @param {{
|
|
@@ -47,7 +47,7 @@ const LanguageDropdown = ({
|
|
|
47
47
|
return item?.name?.toLowerCase().includes(searchWord.toLowerCase());
|
|
48
48
|
});
|
|
49
49
|
//console.log("newFilter", newFilter);
|
|
50
|
-
if (searchWord ===
|
|
50
|
+
if (searchWord === '') {
|
|
51
51
|
setFilteredData([]);
|
|
52
52
|
setIsSearch(false);
|
|
53
53
|
} else {
|
|
@@ -68,7 +68,7 @@ const LanguageDropdown = ({
|
|
|
68
68
|
};
|
|
69
69
|
document.addEventListener("click", handleClickOutside);
|
|
70
70
|
return () => {
|
|
71
|
-
document.removeEventListener(
|
|
71
|
+
document.removeEventListener('click', handleClickOutside);
|
|
72
72
|
};
|
|
73
73
|
}, [setLanguageDropdown]);
|
|
74
74
|
const handleLanguageChange = async (item) => {
|
|
@@ -82,7 +82,7 @@ const LanguageDropdown = ({
|
|
|
82
82
|
item?.slug === defaultLang
|
|
83
83
|
? setIsTranslationsLoading(false)
|
|
84
84
|
: setIsTranslationsLoading(true);
|
|
85
|
-
localStorage.setItem(
|
|
85
|
+
localStorage.setItem('defaultLang', item?.slug);
|
|
86
86
|
window.location.reload();
|
|
87
87
|
};
|
|
88
88
|
return (
|
|
@@ -106,7 +106,7 @@ const LanguageDropdown = ({
|
|
|
106
106
|
className="search_input"
|
|
107
107
|
name=""
|
|
108
108
|
id=""
|
|
109
|
-
placeholder={findText(
|
|
109
|
+
placeholder={findText('Search')}
|
|
110
110
|
/>
|
|
111
111
|
</div>
|
|
112
112
|
|