l-min-components 1.7.1367 → 1.7.1369

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.7.1367",
3
+ "version": "1.7.1369",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -69,8 +69,10 @@ const AccountDropdown = (props) => {
69
69
  {findAccountNames(props?.selectedAccount)}
70
70
  </h1>
71
71
  <h2 style={{ textTransform: "capitalize" }}>
72
- {props?.selectedAccount?.type?.toLowerCase() ||
73
- props.activeAccountType}{" "}
72
+ {props?.selectedAccount?.type?.toLowerCase() === "personal"
73
+ ? "Student"
74
+ : props?.selectedAccount?.type?.toLowerCase() ||
75
+ props.activeAccountType}{" "}
74
76
  </h2>
75
77
  </div>
76
78
  </AccountDropdownHeader>
@@ -251,7 +253,7 @@ const AccountDropdown = (props) => {
251
253
  // dont show personal accounts for developer user
252
254
  props?.personalAccountData?.length > 0 && (
253
255
  <div>
254
- <h3 style={{ marginBottom: 10 }}>Personal account</h3>
256
+ <h3 style={{ marginBottom: 10 }}>Student account</h3>
255
257
  {props?.personalAccountData?.map((personalItem, idx) => (
256
258
  <div
257
259
  className={`account-info ${
@@ -577,7 +577,9 @@ const HeaderComponent = (props) => {
577
577
  <div className="user-info-container">
578
578
  <h5 style={{ textTransform: "capitalize" }}>{accountName}</h5>
579
579
  <h6 style={{ textTransform: "capitalize" }}>
580
- {props?.selectedAccount?.type?.toLowerCase()}
580
+ {props?.selectedAccount?.type?.toLowerCase() === "personal"
581
+ ? "Student"
582
+ : props?.selectedAccount?.type?.toLowerCase()}
581
583
  </h6>
582
584
  </div>
583
585
  <ArrowDownIcon width={16} height={10} />
@@ -243,6 +243,8 @@ export const UserProfile = styled.div`
243
243
  .user-img-container {
244
244
  width: 37px;
245
245
  height: 37px;
246
+ border-radius: 50%;
247
+ overflow: hidden;
246
248
 
247
249
  img {
248
250
  width: 100%;
@@ -366,6 +368,8 @@ export const AccountDropdownHeader = styled.div`
366
368
  display: flex;
367
369
  justify-content: center;
368
370
  align-items: center;
371
+ overflow: hidden;
372
+ border-radius: 50%;
369
373
  img {
370
374
  width: 100%;
371
375
  height: 100%;
@@ -427,6 +431,12 @@ export const AccountDropdownBody = styled.div`
427
431
  & .avatar-container {
428
432
  width: 30px;
429
433
  height: 30px;
434
+ overflow: hidden;
435
+ border-radius: 50%;
436
+ img {
437
+ width: 100%;
438
+ height: 100%;
439
+ }
430
440
  }
431
441
 
432
442
  & .account-info {
@@ -25,7 +25,6 @@ const HeaderComponentTwo = (props) => {
25
25
  const [languageDropdown, setLanguageDropdown] = useState();
26
26
  const value = localStorage.getItem("defaultLang");
27
27
 
28
-
29
28
  const navigate = useNavigate();
30
29
  const location = useLocation();
31
30
  useEffect(() => {
@@ -41,7 +40,7 @@ const HeaderComponentTwo = (props) => {
41
40
  const containerRef = useRef(null);
42
41
 
43
42
  const handleLogoClick = () => {
44
- window.location.href = "https://learngual.com/";
43
+ window.location.href = "/";
45
44
  };
46
45
 
47
46
  useEffect(() => {
@@ -61,14 +60,13 @@ const HeaderComponentTwo = (props) => {
61
60
  };
62
61
  }, [setLanguageDropdown]);
63
62
 
64
-
65
63
  const handleLanguageChange = async (item) => {
66
64
  setLanguageDropdown();
67
65
  props.setDefaultLang(item?.slug);
68
66
  item?.slug === props.defaultLang
69
67
  ? props?.setIsTranslationsLoading(false)
70
68
  : props?.setIsTranslationsLoading(true);
71
- localStorage.setItem("defaultLang", (item?.slug));
69
+ localStorage.setItem("defaultLang", item?.slug);
72
70
  window.location.reload();
73
71
  };
74
72