l-min-components 1.0.949 → 1.0.961

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.0.949",
3
+ "version": "1.0.961",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -173,7 +173,8 @@ const AppMainLayout = () => {
173
173
  "Sorry, you can’t access your account on a mobile browser.",
174
174
  "We know it's inconvenient. For better user accessibility, login with a desktop device or via our mobile app.",
175
175
  "Download on Google Play",
176
- "Download on Apple Store"
176
+ "Download on Apple Store",
177
+ "Help",
177
178
  ];
178
179
 
179
180
  const {
@@ -96,7 +96,11 @@ const DropDownComponent = (props) => {
96
96
  props?.inputPlaceHolder || "Select Dropdown"
97
97
  }
98
98
  type="text"
99
- value={props?.valueSelect?.name || selected?.name}
99
+ value={
100
+ props?.findText
101
+ ? props?.findText(props?.valueSelect?.name || selected?.name)
102
+ : props?.valueSelect?.name || selected?.name
103
+ }
100
104
  onChange={(e) => {
101
105
  setSearchParam(e.target.value);
102
106
  }}
@@ -106,7 +110,13 @@ const DropDownComponent = (props) => {
106
110
  ) : (
107
111
  // <p onClick={() => setDropdown(!dropdown)}>
108
112
  <p onClick={handleDropdownToggle}>
109
- {props?.valueSelect?.name ||
113
+ {props?.findText
114
+ ? props?.findText(
115
+ props?.valueSelect?.name ||
116
+ selected?.name ||
117
+ props?.inputPlaceHolder
118
+ )
119
+ : props?.valueSelect?.name ||
110
120
  selected?.name ||
111
121
  props?.inputPlaceHolder}
112
122
  </p>
@@ -0,0 +1,22 @@
1
+ export const QuestionMark = () => (
2
+ <svg
3
+ width="24"
4
+ height="24"
5
+ viewBox="0 0 24 24"
6
+ fill="#4A4D4D"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ >
9
+ <g clip-path="url(#clip0_37582_326535)">
10
+ <path
11
+ d="M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 19H11V17H13V19ZM15.07 11.25L14.17 12.17C13.45 12.9 13 13.5 13 15H11V14.5C11 13.4 11.45 12.4 12.17 11.67L13.41 10.41C13.78 10.05 14 9.55 14 9C14 7.9 13.1 7 12 7C10.9 7 10 7.9 10 9H8C8 6.79 9.79 5 12 5C14.21 5 16 6.79 16 9C16 9.88 15.64 10.68 15.07 11.25Z"
12
+ fill="#fff"
13
+ // stroke="#4A4D4D"
14
+ />
15
+ </g>
16
+ <defs>
17
+ <clipPath id="clip0_37582_326535">
18
+ <rect width="24" height="24" fill="#4A4D4D" />
19
+ </clipPath>
20
+ </defs>
21
+ </svg>
22
+ );
@@ -17,6 +17,7 @@ import {
17
17
  SearchInputGroup,
18
18
  SearchInput,
19
19
  UserProfile,
20
+ Help
20
21
  } from "./index.styled";
21
22
  import useHeader from "./getHeaderDetails";
22
23
  import { FullPageLoader, OutletContext } from "..";
@@ -26,6 +27,7 @@ import LanguageDropdown from "./languageDropdown";
26
27
  import { getCookie } from "./getCookies";
27
28
  // import { data } from "../GraphMap/data";
28
29
  import { languagesData } from "./languages";
30
+ import { QuestionMark } from "./assets/svg/questionMark";
29
31
 
30
32
  /**
31
33
  * @param {{
@@ -481,7 +483,25 @@ const HeaderComponent = (props) => {
481
483
  {props.findText("Notifications")}
482
484
  </a>
483
485
  </li>
486
+ <li style={{marginLeft: "20%", cursor: "pointer"}}>
487
+ <a
488
+ onClick={() => {
489
+ window.location.href =
490
+ "https://559staging.learngual.com/help-center";
491
+ }}
492
+ className={
493
+ window.location.pathname.includes("help-center") ? "active" : ""
494
+ }>
495
+ <QuestionMark /> {props?.findText("Help")}
496
+ </a>
497
+ </li>
484
498
  </Nav>
499
+ {/*
500
+ <Help>
501
+ <QuestionMark />
502
+ Help
503
+
504
+ </Help> */}
485
505
 
486
506
  <NavGroup
487
507
  onClick={() => {
@@ -214,6 +214,9 @@ export const Nav = styled.ul`
214
214
  & svg path {
215
215
  stroke: ${({ isActive }) =>
216
216
  isActive ? "rgba(0, 194, 194, 1)" : "currentcolor"};
217
+ fill: ${({ isActive }) =>
218
+ isActive ? "rgba(0, 194, 194, 1)" : "currentcolor"};
219
+
217
220
  }
218
221
 
219
222
  &.disabled {
@@ -843,3 +846,18 @@ export const LanguageDropdownContainer = styled.div`
843
846
  }
844
847
  }
845
848
  `;
849
+
850
+
851
+ export const Help = styled.div`
852
+ display: flex;
853
+ align-items: center;
854
+ /* color: #00c2c2; */
855
+ cursor: pointer;
856
+ font-size: 15px;
857
+ font-weight: 600;
858
+ color: #4a4d4d;
859
+
860
+ svg{
861
+ margin-right: 5px;
862
+ }
863
+ `