l-min-components 1.7.1527 → 1.7.1529

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.1527",
3
+ "version": "1.7.1529",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -7,11 +7,11 @@ export const languagesData = [
7
7
  flag: usFlag,
8
8
  slug: "en",
9
9
  },
10
- // {
11
- // name: "Korean",
12
- // flag: koreanFlag,
13
- // slug: "ko",
14
- // },
10
+ {
11
+ name: "Korean",
12
+ flag: koreanFlag,
13
+ slug: "ko",
14
+ },
15
15
  ];
16
16
 
17
17
  export const selectedLanguageData = {
@@ -1,5 +1,5 @@
1
- import React, { useContext, useEffect, useMemo, useState } from 'react';
2
- import PropTypes from 'prop-types';
1
+ import React, { useContext, useEffect, useMemo, useState } from "react";
2
+ import PropTypes from "prop-types";
3
3
  import {
4
4
  UserCardContainer,
5
5
  Avatar,
@@ -27,15 +27,15 @@ const UserCard = ({ isOpen, findText }) => {
27
27
  : ".learngual.com";
28
28
  date.setDate(date.getDate() + 28);
29
29
  document.cookie =
30
- 'activeDeveloperAccount=' +
30
+ "activeDeveloperAccount=" +
31
31
  generalData?.selectedAccount?.id +
32
32
  `; path=/; domain=${domain}; expires=${date.toUTCString()};`;
33
33
  document.cookie =
34
- 'defaultAccountID=' +
34
+ "defaultAccountID=" +
35
35
  generalData?.selectedAccount?.id +
36
36
  `; path=/; domain=${domain}; expires=${date.toUTCString()};`;
37
37
  document.cookie =
38
- 'defaultAccountType=' +
38
+ "defaultAccountType=" +
39
39
  generalData?.selectedAccount?.type +
40
40
  `; path=/; domain=${domain}; expires=${date.toUTCString()};`;
41
41
  handleSetDefaultAccount(generalData?.selectedAccount?.id);
@@ -43,7 +43,7 @@ const UserCard = ({ isOpen, findText }) => {
43
43
  setOrganizationName(generalData?.selectedAccount?.display_name);
44
44
  } else {
45
45
  return setOrganizationName(
46
- generalData?.selectedAccount?.metadata?.organization_name,
46
+ generalData?.selectedAccount?.metadata?.organization_name
47
47
  );
48
48
  }
49
49
  }
@@ -60,7 +60,7 @@ const UserCard = ({ isOpen, findText }) => {
60
60
  isOpen={isOpen}
61
61
  onClick={() => {
62
62
  if (
63
- generalData?.selectedAccount?.type?.toLowerCase() !== 'personal'
63
+ generalData?.selectedAccount?.type?.toLowerCase() !== "personal"
64
64
  ) {
65
65
  window.location.href = `/${generalData?.selectedAccount?.type?.toLowerCase()}/profile`;
66
66
  }
@@ -70,22 +70,25 @@ const UserCard = ({ isOpen, findText }) => {
70
70
  isOpen={isOpen}
71
71
  onClick={() => {
72
72
  if (
73
- generalData?.selectedAccount?.type?.toLowerCase() !== 'personal'
73
+ generalData?.selectedAccount?.type?.toLowerCase() !==
74
+ "personal" ||
75
+ generalData?.selectedAccount?.type?.toLowerCase() !==
76
+ "developer"
74
77
  ) {
75
78
  window.location.href = `/${generalData?.selectedAccount?.type?.toLowerCase()}/profile`;
76
79
  }
77
80
  }}
78
81
  >
79
- <UserName>{findText('Hello')}</UserName>
82
+ <UserName>{findText("Hello")}</UserName>
80
83
  <Handle
81
84
  style={{
82
- textTransform: 'capitalize',
85
+ textTransform: "capitalize",
83
86
  fontWeight: 700,
84
87
  fontSize: 15,
85
88
  }}
86
89
  >
87
90
  {accountName?.length >= 25
88
- ? accountName?.slice(0, 25)?.trim() + '...'
91
+ ? accountName?.slice(0, 25)?.trim() + "..."
89
92
  : accountName}
90
93
  </Handle>
91
94
  </UserDetail>