File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
src/sections/General/Navigation Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import LogoutIcon from "./utility/LogoutIcon.js";
2222import KanvasIcon from "./utility/KanvasIcon.js" ;
2323import Layer5CloudDarkIcon from "./utility/Layer5CloudDarkIcon.svg" ;
2424import Layer5CloudLightIcon from "./utility/Layer5CloudLightIcon.svg" ;
25+ import { IoIosArrowRoundForward } from "@react-icons/all-files/io/IoIosArrowRoundForward.js" ;
2526
2627const 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 ) ) }
Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments