l-min-components 1.0.550 → 1.0.552

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.550",
3
+ "version": "1.0.552",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -76,12 +76,15 @@ const DropDownComponent = (props) => {
76
76
  <ControlInput
77
77
  placeholder={props?.inputPlaceHolder || "Select Dropdown"}
78
78
  type="text"
79
- value={props?.valueSelect?.name || selected?.name}
79
+ value={(searchParam && searchParam) ||
80
+ (props?.valueSelect?.name && props?.valueSelect?.name) ||
81
+ (selected?.name && selected?.name)}
80
82
  onChange={(e) => {
81
83
  setSearchParam(e.target.value);
82
84
  }}
85
+
83
86
  // onClick={() => setDropdown(true)}
84
- onClick={handleDropdownToggle}
87
+ onFocus={handleDropdownToggle}
85
88
  />
86
89
  ) : (
87
90
  // <p onClick={() => setDropdown(!dropdown)}>
@@ -107,6 +110,7 @@ const DropDownComponent = (props) => {
107
110
  onClick={() => {
108
111
  setSelected(dropdownItem);
109
112
  setDropdown();
113
+ setSearchParam()
110
114
  }}
111
115
  >
112
116
  <span>{dropdownItem?.name}</span>
@@ -259,8 +259,13 @@ const AccountDropdown = (props) => {
259
259
  <AccountDropdownFooter>
260
260
  <button
261
261
  onClick={() => {
262
- window.location.href =
262
+ if(window.location.hostname.includes("staging")){
263
+ window.location.href =
263
264
  "https://559staging.learngual.com/auth/account-type";
265
+ }
266
+ else if(!window.location.hostname.includes("localhost")){
267
+ window.location.href= "https://learngual.com/auth/account-type";
268
+ }
264
269
  }}
265
270
  style={{ cursor: "pointer" }}
266
271
  >