l-min-components 1.0.876 → 1.0.879

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.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/src/components/AdminAppMainLayout/index.jsx +0 -3
  3. package/src/components/AdminResetPassword/change-password.jsx +1 -2
  4. package/src/components/AdminResetPassword/index.jsx +1 -1
  5. package/src/components/AdminSecuritySettings/modals/success-modal.jsx +0 -1
  6. package/src/components/AdminSidebar/index.jsx +3 -6
  7. package/src/components/AppMainLayout/index.jsx +0 -2
  8. package/src/components/banner/index.jsx +0 -4
  9. package/src/components/datePicker/index.jsx +0 -1
  10. package/src/components/deactivated/modal/subscription-expired-modal.jsx +1 -11
  11. package/src/components/errorPage/index.jsx +1 -1
  12. package/src/components/fileRightBar/enterpriseRightBar/index.jsx +0 -8
  13. package/src/components/fileRightBar/instructorRightBar.jsx +0 -8
  14. package/src/components/fileRightBar/managerPageRight.jsx +0 -3
  15. package/src/components/fileRightBar/personalRightBar/index.jsx +1 -10
  16. package/src/components/fileRightBar/upgrade.jsx +0 -12
  17. package/src/components/fileRightBar/uploadRight.jsx +0 -16
  18. package/src/components/fileRightBar/users.jsx +0 -13
  19. package/src/components/friendRequest/friendRequestList/index.jsx +0 -1
  20. package/src/components/fullPageLoader/index.jsx +0 -3
  21. package/src/components/graph/index.jsx +0 -1
  22. package/src/components/header/index.jsx +1 -6
  23. package/src/components/header/login-header.jsx +3 -5
  24. package/src/components/input/index.jsx +0 -1
  25. package/src/components/mobileLayout/index.jsx +1 -1
  26. package/src/components/searchBar/index.jsx +0 -2
  27. package/src/components/sideBar/sideMenu/index.jsx +1 -1
  28. package/src/components/sideBar/userCard/index.jsx +1 -1
  29. package/src/components/sideNav/index.jsx +0 -2
  30. package/src/components/textEditor/index.jsx +1 -1
  31. package/src/hooks/leftNavMenu.jsx +5 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.0.876",
3
+ "version": "1.0.879",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -1,9 +1,6 @@
1
1
  import React, {
2
2
  useState,
3
- useEffect,
4
3
  createContext,
5
- useRef,
6
- useContext,
7
4
  } from 'react';
8
5
  import { Outlet, useLocation } from 'react-router-dom';
9
6
  import {
@@ -2,10 +2,9 @@ import React from "react";
2
2
  import { AdminResetPasswordContainer } from "./index.styled";
3
3
  import bg from "./assets/images/reset_password_bg.png";
4
4
  import logo from "./assets/images/logo.png";
5
- import { Link, useNavigate } from "react-router-dom";
5
+ import { useNavigate } from "react-router-dom";
6
6
  import ButtonComponent from "../button";
7
7
  import InputComponent from "../input";
8
- import { BackArrow } from "./assets/svg/back-arrow";
9
8
 
10
9
  const AdminResetPassword = () => {
11
10
  const navigate = useNavigate();
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { AdminResetPasswordContainer } from "./index.styled";
3
3
  import bg from "./assets/images/reset_password_bg.png";
4
4
  import logo from "./assets/images/logo.png";
5
- import { Link, useNavigate } from "react-router-dom";
5
+ import { useNavigate } from "react-router-dom";
6
6
  import ButtonComponent from "../button";
7
7
  import InputComponent from "../input";
8
8
  import { BackArrow } from "./assets/svg/back-arrow";
@@ -5,7 +5,6 @@ import {
5
5
  ModalCardContainer,
6
6
  CloseModalButton,
7
7
  } from "./index.styled";
8
- import { IoMdClose } from "react-icons/io";
9
8
  import Modal from "react-modal";
10
9
  import ButtonComponent from "../../button";
11
10
  import img from "../assets/images/subtract.png"
@@ -1,16 +1,13 @@
1
1
  import React, { useState, useRef } from 'react';
2
2
  import { NavLink } from 'react-router-dom';
3
3
  import {
4
- NavigationContainer,
5
4
  SideMenuContainer,
6
- SideMenuDropdownBody,
7
- SideMenuDropdownHeader,
8
5
  NavWrapper,
9
6
  } from './index.styled';
10
- import { adminSideMenuOptions } from '../../hooks/adminSideMenuItems';
7
+ // import { adminSideMenuOptions } from '../../hooks/adminSideMenuItems';
11
8
  import logo from './assets/images/logo.png';
12
- import { ChevronIconActive } from './assets/svg/chevronIcon';
13
- import cx from 'classnames';
9
+ // import { ChevronIconActive } from './assets/svg/chevronIcon';
10
+ // import cx from 'classnames';
14
11
  import { LogoutIcon } from './assets/svg/logoutIcon';
15
12
  import {
16
13
  adminCMSItems,
@@ -2,8 +2,6 @@ import React, {
2
2
  useState,
3
3
  useEffect,
4
4
  createContext,
5
- useRef,
6
- useContext,
7
5
  } from "react";
8
6
  import { Outlet, useLocation } from "react-router-dom";
9
7
  import {
@@ -1,8 +1,5 @@
1
1
  import React, { useContext } from "react";
2
2
  import {
3
- AbsoluteSVG,
4
- ArrowIcon,
5
- BannerCTA,
6
3
  BannerImage,
7
4
  BannerSubtitle,
8
5
  BannerTitle,
@@ -11,7 +8,6 @@ import {
11
8
  import BannerImg from "./assets/banner.png";
12
9
  import Button from "../button";
13
10
  import { FaArrowRight } from "react-icons/fa";
14
- import { OutletContext } from "../AppMainLayout";
15
11
  import useTranslation from "../../hooks/useTranslation";
16
12
 
17
13
  const Banner = () => {
@@ -1,7 +1,6 @@
1
1
  import React, { useState } from 'react';
2
2
  import DatePicker from 'react-datepicker';
3
3
  import { CalendarIcon } from './svg/calendar';
4
- import { DownloadIcon } from './svg/download';
5
4
  import CustomDatePickerHeader from './dateNavigation';
6
5
  import { DatePickerWrapper, DateCont } from './style';
7
6
  import moment from 'moment';
@@ -1,10 +1,7 @@
1
1
  import { useState, useEffect } from "react";
2
2
  import {
3
- CardContainer,
4
3
  CardBody,
5
- CardHeader,
6
4
  ModalCardContainer,
7
- CloseModalButton,
8
5
  ExpiryCardContainer,
9
6
  } from "./index.styled";
10
7
  import Modal from "react-modal";
@@ -12,7 +9,7 @@ import ButtonComponent from "../../button";
12
9
  import RemoveUser from "./img/removeUser.png";
13
10
  import { ErrorBookIcon } from "./img/book";
14
11
  import moment from "moment";
15
- import { toast, ToastContainer } from "react-toastify";
12
+ import { toast } from "react-toastify";
16
13
  import "react-toastify/dist/ReactToastify.css";
17
14
  import { useNavigate } from "react-router-dom";
18
15
 
@@ -103,13 +100,6 @@ const SubscriptionExpiredModal = ({
103
100
 
104
101
  const isWithin10Days = moment().add(10, "days").isSameOrBefore(expiryDate);
105
102
 
106
- if (isWithin10Days) {
107
- //console.log('Expiry date is within 10 days');
108
- } else {
109
- //console.log('Expiry date is more than 10 days away');
110
- }
111
- //console.log(isWithin10Days)
112
-
113
103
  const [daysLeft, setDaysLeft] = useState(null);
114
104
 
115
105
  useEffect(() => {
@@ -1,4 +1,4 @@
1
- import React, { useContext, useLayoutEffect } from "react";
1
+ import React from "react";
2
2
  import { Container } from "./style";
3
3
  import ErrorImage from "./errorPage.png";
4
4
  import ButtonComponent from "../button";
@@ -4,16 +4,8 @@ import {
4
4
  InstructorContainer,
5
5
  NewLanguage,
6
6
  RecentAdded,
7
- Container,
8
- Upgrade,
9
- Users,
10
- UploadProgressContainer,
11
7
  } from "../styles";
12
8
  import Button from "../../button";
13
- import CircularProgressBar from "../components/progressBar";
14
- import UpgradeIcon from "../assets/Feature.png";
15
- import { UploadProgress } from "../assets/uploadProgressIcon";
16
- import ProgressBar from "../../progressBar";
17
9
  import UpgradeComponent from "./upgrade";
18
10
  import LessonIcon from "../assets/lession";
19
11
  import LessonFlag from "../assets/lessonflag";
@@ -4,16 +4,8 @@ import {
4
4
  InstructorContainer,
5
5
  NewLanguage,
6
6
  RecentAdded,
7
- Container,
8
- Upgrade,
9
- Users,
10
- UploadProgressContainer
11
7
  } from "./styles";
12
8
  import Button from "../button";
13
- import CircularProgressBar from "./components/progressBar";
14
- import UpgradeIcon from "./assets/Feature.png";
15
- import { UploadProgress } from "./assets/uploadProgressIcon";
16
- import ProgressBar from "../progressBar";
17
9
  import UpgradeComponent from "./components/ugradeLock";
18
10
  import LessonIcon from "./assets/lession";
19
11
  import LessonFlag from "./assets/lessonflag";
@@ -2,13 +2,10 @@ import React from "react";
2
2
  import {
3
3
  BannerWrapper,
4
4
  Container,
5
- Upgrade,
6
- Users,
7
5
  UploadProgressContainer
8
6
  } from "./styles";
9
7
  import Button from "../button";
10
8
  import CircularProgressBar from "./components/progressBar";
11
- import UpgradeIcon from "./assets/Feature.png";
12
9
  import { UploadProgress } from "./assets/uploadProgressIcon";
13
10
  import ProgressBar from "../progressBar";
14
11
  import UpgradeComponent from "./components/ugradeLock";
@@ -4,16 +4,7 @@ import {
4
4
  InstructorContainer,
5
5
  NewLanguage,
6
6
  RecentAdded,
7
- Container,
8
- Upgrade,
9
- Users,
10
- UploadProgressContainer
11
7
  } from "../styles";
12
- import Button from "../../button";
13
- import CircularProgressBar from "../components/progressBar";
14
- import UpgradeIcon from "../assets/Feature.png";
15
- import { UploadProgress } from "../assets/uploadProgressIcon";
16
- import ProgressBar from "../../progressBar";
17
8
  import UpgradeComponent from "../components/ugradeLock";
18
9
  import LessonIcon from "../assets/lession";
19
10
  import LessonFlag from "../assets/lessonflag";
@@ -33,7 +24,7 @@ import LibraryAdImage from "../assets/libraryAd.png"
33
24
  *
34
25
  */
35
26
 
36
- const PersonalRightBar = ({UpgradeClick, CourseClick, personalReport, personalLibrary }) => {
27
+ const PersonalRightBar = ({ personalReport, personalLibrary }) => {
37
28
 
38
29
  return (
39
30
  <InstructorContainer>
@@ -1,23 +1,11 @@
1
1
  import React from "react";
2
2
  import {
3
- AbsoluteSVG,
4
- ArrowIcon,
5
- BannerCTA,
6
- BannerImage,
7
- BannerSubtitle,
8
- BannerTitle,
9
3
  BannerWrapper,
10
4
  Container,
11
- Upgrade,
12
- Users,
13
5
  UploadProgressContainer
14
6
  } from "./styles";
15
- import BannerImg from "./assets/banner.png";
16
7
  import Button from "../button";
17
- import { FaArrowRight } from "react-icons/fa";
18
8
  import CircularProgressBar from "./components/progressBar";
19
- import UpgradeIcon from "./assets/Feature.png";
20
- import UploadOwner from "./assets/uploadOwner.png";
21
9
  import { UploadProgress } from "./assets/uploadProgressIcon";
22
10
  import ProgressBar from "../progressBar";
23
11
  import UsersList from "./components/users";
@@ -1,25 +1,9 @@
1
1
  import React from "react";
2
2
  import {
3
- AbsoluteSVG,
4
- ArrowIcon,
5
- BannerCTA,
6
- BannerImage,
7
- BannerSubtitle,
8
- BannerTitle,
9
3
  BannerWrapper,
10
4
  Container,
11
- Upgrade,
12
- Users,
13
- UploadProgressContainer
14
5
  } from "./styles";
15
- import BannerImg from "./assets/banner.png";
16
- import Button from "../button";
17
- import { FaArrowRight } from "react-icons/fa";
18
6
  import CircularProgressBar from "./components/progressBar";
19
- import UpgradeIcon from "./assets/Feature.png";
20
- import UploadOwner from "./assets/uploadOwner.png";
21
- import { UploadProgress } from "./assets/uploadProgressIcon";
22
- import ProgressBar from "../progressBar";
23
7
  import UpgradeComponent from "./components/ugradeLock";
24
8
 
25
9
 
@@ -1,23 +1,10 @@
1
1
  import React from "react";
2
2
  import {
3
- AbsoluteSVG,
4
- ArrowIcon,
5
- BannerCTA,
6
- BannerImage,
7
- BannerSubtitle,
8
- BannerTitle,
9
3
  BannerWrapper,
10
4
  Container,
11
- Upgrade,
12
- Users,
13
- UploadProgressContainer
14
5
  } from "./styles";
15
- import BannerImg from "./assets/banner.png";
16
6
  import Button from "../button";
17
- import { FaArrowRight } from "react-icons/fa";
18
7
  import CircularProgressBar from "./components/progressBar";
19
- import UpgradeIcon from "./assets/Feature.png";
20
- import UploadOwner from "./assets/uploadOwner.png";
21
8
  import UsersList from "./components/users";
22
9
 
23
10
 
@@ -2,7 +2,6 @@ import React, { useState } from "react";
2
2
  import PropTypes from "prop-types";
3
3
  import FriendRequestCard from "../friendRequestCard";
4
4
  import { Container, Header, RequestList, SeeLessButton } from "./styles";
5
- import FriendImg from "../../../assets/friendrequest.png"
6
5
 
7
6
  const FriendRequestList = ({ friendRequests, onAdd, onDecline }) => {
8
7
  const [expanded, setExpanded] = useState(false);
@@ -1,8 +1,5 @@
1
1
  import React from 'react';
2
2
  import styled, { css } from 'styled-components';
3
- import loaderGif from './assets/first.gif';
4
- import Lottie from 'react-lottie';
5
- import defaultLoaderAnimation from './loader_3.json';
6
3
  import Loader from './loader';
7
4
 
8
5
  /**
@@ -7,7 +7,6 @@ import {
7
7
  } from "./index.styled";
8
8
  import DatePicker from "react-datepicker";
9
9
  import "react-datepicker/dist/react-datepicker.css";
10
- import moment from "moment";
11
10
  import { CalendarIcon } from "../../assets/svg/calendar";
12
11
  import { DownloadIcon } from "../../assets/svg/download";
13
12
  import GraphChart from "./graphData";
@@ -1,9 +1,6 @@
1
1
  import React, { useState, useEffect, useRef, useContext } from "react";
2
- import ReactFlagsSelect from "react-flags-select";
3
2
  import logo from "./assets/images/logo.png";
4
3
  import { BookIcon } from "./assets/svg/book";
5
- import { PeopleIcon } from "./assets/svg/people";
6
- import { MessageIcon } from "./assets/svg/message";
7
4
  import { SettingIcon } from "./assets/svg/setting";
8
5
  import { SearchIcon } from "./assets/svg/search";
9
6
  import {
@@ -20,7 +17,6 @@ import {
20
17
  SearchInputGroup,
21
18
  SearchInput,
22
19
  UserProfile,
23
- CountryFlagGroup,
24
20
  } from "./index.styled";
25
21
  import useHeader from "./getHeaderDetails";
26
22
  import { FullPageLoader, OutletContext } from "..";
@@ -28,7 +24,7 @@ import { useLocation } from "react-router-dom";
28
24
  import usFlag from "../../assets/images/usFlag.png";
29
25
  import LanguageDropdown from "./languageDropdown";
30
26
  import { getCookie } from "./getCookies";
31
- import { data } from "../GraphMap/data";
27
+ // import { data } from "../GraphMap/data";
32
28
  import { languagesData } from "./languages";
33
29
  import loadTranslations, { preLoadWords } from "../../hooks/utils/translation";
34
30
  /**
@@ -185,7 +181,6 @@ const HeaderComponent = (props) => {
185
181
  if (nextValidAccount) {
186
182
  setSelectedAccount(nextValidAccount);
187
183
  }
188
- // If there is no valid developer account, do nothing (do not set a new selected account)
189
184
  }
190
185
  }
191
186
  }, [generalData?.selectedAccount, userAccountsDetail?.data]);
@@ -3,18 +3,16 @@ import React, {
3
3
  useEffect,
4
4
  useRef,
5
5
  useCallback,
6
- useContext,
7
6
  } from "react";
8
- import ReactFlagsSelect from "react-flags-select";
9
7
  import logo from "./assets/images/logo.png";
10
- import { Navbar2, NavGroup2, Nav2, CountryFlagGroup2 } from "./index.styled";
8
+ import { Navbar2, NavGroup2, } from "./index.styled";
11
9
  import { ArrowDownIcon } from "./assets/svg/arrow-down";
12
10
  import ButtonComponent from "../button";
13
11
  import { useLocation, useNavigate } from "react-router-dom";
14
12
  import usFlag from "../../assets/images/usFlag.png";
15
13
  import koreanFlag from "../../assets/images/koreaFlag.png";
16
- import { FullPageLoader, OutletContext } from "..";
17
- import useTranslation from "../../hooks/useTranslation";
14
+ import { FullPageLoader } from "..";
15
+ // import useTranslation from "../../hooks/useTranslation";
18
16
 
19
17
  /**
20
18
  * @param {{
@@ -1,6 +1,5 @@
1
1
  import React, { useState, useEffect, useContext } from "react";
2
2
  import { Input, Label, ErrorMsg } from "./index.styled";
3
- import { OutletContext } from "../AppMainLayout";
4
3
  import useTranslation from "../../hooks/useTranslation";
5
4
 
6
5
  /**
@@ -1,6 +1,6 @@
1
1
  import React, { useState, useEffect, useRef } from "react";
2
2
  import { MobileLayoutContainer } from "./index.styled";
3
- import BackArrow from "./assets/svg/backArrow";
3
+ // import BackArrow from "./assets/svg/backArrow";
4
4
  import img from "./assets/images/bg_img.png";
5
5
  import play from "./assets/images/play_store.png";
6
6
  import apple from "./assets/images/apple_store.png";
@@ -8,8 +8,6 @@ import {
8
8
  SuggestionList,
9
9
  SuggestionItem,
10
10
  Container,
11
- OptionIcon,
12
- OptionIconSearch,
13
11
  } from "./styles";
14
12
  import { SearchFilterIcon } from "./svg/searchFilter";
15
13
  import { SearchSvg } from "./svg/search-normal";
@@ -10,7 +10,6 @@ import {
10
10
  NavigationContainer,
11
11
  } from "./styles";
12
12
  import { IoIosArrowBack, IoIosArrowForward } from "react-icons/io";
13
- import { CiLogout } from "react-icons/ci";
14
13
  import UserCard from "../userCard";
15
14
  import cx from "classnames";
16
15
  import InstructorRightBar from "../../fileRightBar/instructorRightBar";
@@ -49,6 +48,7 @@ const SideMenu = ({
49
48
  generalData?.selectedAccount?.type === "PERSONAL" &&
50
49
  window.location.hostname.includes("staging");
51
50
 
51
+ // When pending delete and on staging
52
52
  const isPendingDelete =
53
53
  generalData?.selectedAccount?.pending_delete === true &&
54
54
  window.location.hostname.includes("staging");
@@ -58,7 +58,7 @@ const UserCard = ({ user, isOpen }) => {
58
58
  }
59
59
  }
60
60
  }, [generalData]);
61
- console.log(generalData, "data");
61
+ // console.log(generalData, "data");
62
62
 
63
63
  return (
64
64
  <UserCardContainer isOpen={isOpen}>
@@ -7,8 +7,6 @@ import {
7
7
  NavWrapper,
8
8
  IconContainer,
9
9
  } from "./styles";
10
- import { CiLogout } from "react-icons/ci";
11
- import { HiOutlineLogout } from "react-icons/hi";
12
10
  import LogoutIcon from "./svg/logout";
13
11
  // import deleteCookies from "../../utils/deleteCookies";
14
12
  import Cookies from "js-cookie";
@@ -2,7 +2,7 @@ import { useCallback, useMemo, useEffect, useRef, useState } from "react";
2
2
  import BinWhite from "./assets/binWhite";
3
3
  import MoveUpDownWhite from "./assets/moveUppDownWhite";
4
4
  import "./style.scss";
5
- import { createEditor, Editor, Transforms } from "slate";
5
+ import { createEditor, Editor, } from "slate";
6
6
  import { Slate, Editable, withReact } from "slate-react";
7
7
  import DropDownComponent from "../dropdown component";
8
8
  import ButtonComponent from "../button";
@@ -1,10 +1,6 @@
1
1
  // import { useState } from "react";
2
2
  import React from "react";
3
3
  import {
4
- FaSmile,
5
- FaMicrophone,
6
- FaHeadphonesAlt,
7
- FaLanguage,
8
4
  FaChartLine,
9
5
  FaFileAlt,
10
6
  FaBook,
@@ -13,25 +9,24 @@ import {
13
9
  FaUser,
14
10
  FaCog,
15
11
  FaQuestion,
16
- FaCode,
17
12
  } from "react-icons/fa";
18
13
  // import { HiOutlineBookOpen } from "react-icons/hi";
19
- import { BsChatSquareText } from "react-icons/bs";
20
- import { MdOutlineBook } from "react-icons/md";
14
+ // import { BsChatSquareText } from "react-icons/bs";
15
+ // import { MdOutlineBook } from "react-icons/md";
21
16
  import UserImage from "../assets/images/dashboardImage.png";
22
17
  import Learning from "../assets/svg/learning";
23
18
  import { AwardIcon, AwardIconActive } from "../assets/svg/award";
24
19
  import { DocumentIcon, DocumentIconActive } from "../assets/svg/document";
25
20
  import { TeamsIcon, TeamsIconActive } from "../assets/svg/teams";
26
- import { VolumeIcon } from "../assets/svg/volume";
27
- import { BookIcon, CoursesIcon, CoursesIconActive } from "../assets/svg/book";
21
+ // import { VolumeIcon } from "../assets/svg/volume";
22
+ import { CoursesIcon, CoursesIconActive } from "../assets/svg/book";
28
23
  import { DashboardIcon, DashboardIconActive } from "../assets/svg/dashboard";
29
24
  import CommunityIcon from "../components/sideNav/svg/commIcon";
30
25
  import FunIcon from "../components/sideNav/svg/fun";
31
26
  import DuetIcon from "../components/sideNav/svg/duetIcon";
32
27
  import SpeechIcon from "../components/sideNav/svg/speechIcon";
33
28
  import DictionaryIcon from "../components/sideNav/svg/dictionaryIcon";
34
- import { MessageIcon } from "../assets/svg/message";
29
+ // import { MessageIcon } from "../assets/svg/message";
35
30
  import { MessagesIcon, MessagesIconActive } from "../assets/svg/messagesIcon";
36
31
  import {
37
32
  AnnouncementsIcon,