Skip to content

Commit 0e797c3

Browse files
authored
Merge branch 'master' into fixGsapAnimation
2 parents 2dbf6ab + 223ae98 commit 0e797c3

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

src/sections/General/Navigation/index.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import LogoutIcon from "./utility/LogoutIcon.js";
2222
import KanvasIcon from "./utility/KanvasIcon.js";
2323
import Layer5CloudDarkIcon from "./utility/Layer5CloudDarkIcon.svg";
2424
import Layer5CloudLightIcon from "./utility/Layer5CloudLightIcon.svg";
25+
import { IoIosArrowRoundForward } from "@react-icons/all-files/io/IoIosArrowRoundForward.js";
2526

2627
const Navigation = () => {
2728
let data = useStaticQuery(
@@ -335,6 +336,41 @@ const Navigation = () => {
335336
</li>
336337
);
337338
})}
339+
{menu.actionItems !== undefined &&
340+
menu.actionItems.map((actionItem, index) => (
341+
(actionItem.actionName === "Join the discussion" ?
342+
<a
343+
key={index}
344+
href={actionItem.actionLink}
345+
target="_blank"
346+
className="mobile-sub-action-item"
347+
rel="noreferrer"
348+
onClick={() => {
349+
changeDropdownState();
350+
closeDropDown();
351+
}}
352+
>
353+
<span className="readmore-btn">
354+
{actionItem.actionName} <IoIosArrowRoundForward />
355+
</span>
356+
</a>
357+
: <Link
358+
key={index}
359+
to={actionItem.actionLink}
360+
partiallyActive={true}
361+
className="mobile-sub-action-item"
362+
onClick={() => {
363+
changeDropdownState();
364+
closeDropDown();
365+
}}
366+
>
367+
<span className="readmore-btn">
368+
{actionItem.actionName} <IoIosArrowRoundForward />
369+
</span>
370+
</Link>
371+
)
372+
))
373+
}
338374
</ul>
339375
</li>
340376
))}

src/sections/General/Navigation/navigation.style.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,11 @@ const NavigationWrap = styled.header`
648648
.mobile-sub-menu-item {
649649
font-size: 1.1rem;
650650
}
651+
.mobile-sub-action-item {
652+
font-size: 1.1rem;
653+
padding-left: 30px;
654+
padding-top: 0.4rem;
655+
}
651656
.mobile-nested-menu {
652657
font-size: 1.1rem;
653658
margin-left: 1rem;

0 commit comments

Comments
 (0)