l-min-components 1.0.251 → 1.0.255
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
|
@@ -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`
|
|
@@ -5,6 +5,7 @@ import { Navbar2, NavGroup2, Nav2, CountryFlagGroup2 } from "./index.styled";
|
|
|
5
5
|
import { ArrowDownIcon } from "./assets/svg/arrow-down";
|
|
6
6
|
import ButtonComponent from "../button";
|
|
7
7
|
import { useLocation, useNavigate } from "react-router-dom";
|
|
8
|
+
import usFlag from "../../assets/images/18165.jpg";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* @param {{
|
|
@@ -19,6 +20,7 @@ const HeaderComponentTwo = (props) => {
|
|
|
19
20
|
const [selected, setSelected] = useState("ES");
|
|
20
21
|
const [isOpen, setIsOpen] = useState(false);
|
|
21
22
|
const [searchResultOpen, setSearchResultOpen] = useState(false);
|
|
23
|
+
const [languageDropdown, setLanguageDropdown] = useState();
|
|
22
24
|
|
|
23
25
|
const navigate = useNavigate();
|
|
24
26
|
const location = useLocation();
|
|
@@ -51,19 +53,31 @@ const HeaderComponentTwo = (props) => {
|
|
|
51
53
|
</Nav2> */}
|
|
52
54
|
|
|
53
55
|
<NavGroup2>
|
|
54
|
-
<
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
<div className="language_dropdown">
|
|
57
|
+
<div
|
|
58
|
+
className="drop_holder"
|
|
59
|
+
onClick={() => setLanguageDropdown(!languageDropdown)}
|
|
60
|
+
>
|
|
61
|
+
<img src={usFlag} alt="" />
|
|
62
|
+
<ArrowDownIcon />
|
|
63
|
+
</div>
|
|
64
|
+
{languageDropdown && (
|
|
65
|
+
<ul className="dropdown_list">
|
|
66
|
+
<li onClick={() => setLanguageDropdown()}>
|
|
67
|
+
<img src={usFlag} alt="" /> <span>English</span>
|
|
68
|
+
</li>
|
|
69
|
+
</ul>
|
|
70
|
+
)}
|
|
71
|
+
</div>
|
|
63
72
|
|
|
64
|
-
{location.pathname.includes("sign-up") &&
|
|
65
|
-
|
|
66
|
-
|
|
73
|
+
{location.pathname.includes("sign-up") &&
|
|
74
|
+
!location.pathname.includes("organization-details") && (
|
|
75
|
+
<ButtonComponent
|
|
76
|
+
type="secondary"
|
|
77
|
+
text="Log in"
|
|
78
|
+
onClick={goToLogin}
|
|
79
|
+
/>
|
|
80
|
+
)}
|
|
67
81
|
</NavGroup2>
|
|
68
82
|
</Navbar2>
|
|
69
83
|
);
|