l-min-components 1.0.248 → 1.0.253

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.248",
3
+ "version": "1.0.253",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -56,7 +56,7 @@ const DropDownComponent = (props) => {
56
56
  />
57
57
  ) : (
58
58
  <p onClick={() => setDropdown(!dropdown)}>
59
- {selected?.name || "Select Dropdown"}
59
+ {selected?.name || props?.inputPlaceHolder}
60
60
  </p>
61
61
  )}
62
62
  <DownIcon onClick={() => setDropdown(!dropdown)} />
@@ -495,6 +495,48 @@ export const NavGroup2 = styled.div`
495
495
  display: flex;
496
496
  justify-content: flex-end;
497
497
  gap: 70px;
498
+ .language_dropdown {
499
+ display: flex;
500
+ align-items: center;
501
+ position: relative;
502
+ .drop_holder {
503
+ display: flex;
504
+ align-items: center;
505
+ border: 1px solid rgba(173, 178, 178, 1);
506
+ padding: 9px 12px;
507
+ border-radius: 37px;
508
+ cursor: pointer;
509
+ img {
510
+ width: 24px;
511
+ height: 16px;
512
+ margin-right: 10px;
513
+ }
514
+ }
515
+ .dropdown_list {
516
+ position: absolute;
517
+ top: 40px;
518
+ width: fit-content;
519
+ background: white;
520
+ padding: 5px;
521
+ border-radius: 5px;
522
+ li {
523
+ list-style-type: none;
524
+ display: flex;
525
+ align-items: center;
526
+ cursor: pointer;
527
+ padding: 5px 10px;
528
+ font-size: 12px;
529
+ &:hover {
530
+ background: rgba(173, 178, 178, 0.3);
531
+ }
532
+ img {
533
+ width: 20px;
534
+ height: 11px;
535
+ margin-right: 10px;
536
+ }
537
+ }
538
+ }
539
+ }
498
540
  `;
499
541
 
500
542
  export const CountryFlagGroup2 = styled.div`
@@ -51,19 +51,31 @@ const HeaderComponentTwo = (props) => {
51
51
  </Nav2> */}
52
52
 
53
53
  <NavGroup2>
54
- <CountryFlagGroup2>
55
- <ReactFlagsSelect
56
- disabled
57
- selected={"US"}
58
- onSelect={(code) => setSelected(code)}
59
- showOptionLabel={true}
60
- />
61
- <ArrowDownIcon />
62
- </CountryFlagGroup2>
54
+ <div className="language_dropdown">
55
+ <div
56
+ className="drop_holder"
57
+ onClick={() => setLanguageDropdown(!languageDropdown)}
58
+ >
59
+ <img src={usFlag} alt="" />
60
+ <ArrowDownIcon />
61
+ </div>
62
+ {languageDropdown && (
63
+ <ul className="dropdown_list">
64
+ <li onClick={() => setLanguageDropdown()}>
65
+ <img src={usFlag} alt="" /> <span>English</span>
66
+ </li>
67
+ </ul>
68
+ )}
69
+ </div>
63
70
 
64
- {location.pathname.includes("sign-up") && (
65
- <ButtonComponent type="secondary" text="Log in" onClick={goToLogin} />
66
- )}
71
+ {location.pathname.includes("sign-up") &&
72
+ !location.pathname.includes("organization-details") && (
73
+ <ButtonComponent
74
+ type="secondary"
75
+ text="Log in"
76
+ onClick={goToLogin}
77
+ />
78
+ )}
67
79
  </NavGroup2>
68
80
  </Navbar2>
69
81
  );