豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 7d62fb3

Browse files
committed
fix: invalid child elements in mobile navigation
Signed-off-by: Abhi <cloudabhi123@gmail.com>
1 parent 0a52db8 commit 7d62fb3

File tree

1 file changed

+33
-31
lines changed

1 file changed

+33
-31
lines changed

src/sections/General/Navigation/index.js

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -381,38 +381,40 @@ const Navigation = () => {
381381
{menu.actionItems !== undefined &&
382382
menu.actionItems.map((actionItem, index) =>
383383
actionItem.actionName === "Join the discussion" ? (
384-
<a
385-
key={index}
386-
href={actionItem.actionLink}
387-
target="_blank"
388-
className="mobile-sub-action-item"
389-
rel="noreferrer"
390-
onClick={() => {
391-
changeDropdownState();
392-
closeDropDown();
393-
}}
394-
>
395-
<span className="readmore-btn">
396-
{actionItem.actionName}{" "}
397-
<IoIosArrowRoundForward />
398-
</span>
399-
</a>
384+
<li key={index}>
385+
<a
386+
href={actionItem.actionLink}
387+
target="_blank"
388+
className="mobile-sub-action-item"
389+
rel="noreferrer"
390+
onClick={() => {
391+
changeDropdownState();
392+
closeDropDown();
393+
}}
394+
>
395+
<span className="readmore-btn">
396+
{actionItem.actionName}{" "}
397+
<IoIosArrowRoundForward />
398+
</span>
399+
</a>
400+
</li>
400401
) : (
401-
<Link
402-
key={index}
403-
to={actionItem.actionLink}
404-
partiallyActive={true}
405-
className="mobile-sub-action-item"
406-
onClick={() => {
407-
changeDropdownState();
408-
closeDropDown();
409-
}}
410-
>
411-
<span className="readmore-btn">
412-
{actionItem.actionName}{" "}
413-
<IoIosArrowRoundForward />
414-
</span>
415-
</Link>
402+
<li key={index}>
403+
<Link
404+
to={actionItem.actionLink}
405+
partiallyActive={true}
406+
className="mobile-sub-action-item"
407+
onClick={() => {
408+
changeDropdownState();
409+
closeDropDown();
410+
}}
411+
>
412+
<span className="readmore-btn">
413+
{actionItem.actionName}{" "}
414+
<IoIosArrowRoundForward />
415+
</span>
416+
</Link>
417+
</li>
416418
)
417419
)}
418420
</ul>

0 commit comments

Comments
 (0)