Skip to content

Commit

Permalink
Merge branch 'hotfix/2.9.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloglacial committed Jun 8, 2022
2 parents 92ac17b + 147ca5d commit 8f31ba1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
10 changes: 4 additions & 6 deletions components/Footer/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ const Footer = (props) => {
</Link>
</li>
{menuContent.items.map((item) => {
const { ID, title, slug } = item;
const { ID, title, slug, url } = item;
return (
<li className={styles.menuLink} key={ID}>
<Link href={`/${slug}`} key={ID}>
<a href={`/${slug}`}>{title}</a>
<Link href={`/${slug || url}`} key={ID}>
<a href={`/${slug || url}`}>{title}</a>
</Link>
</li>
);
Expand All @@ -52,9 +52,7 @@ const Footer = (props) => {
<ul
className={`nav justify-content-center flex-column flex-md-row py-3 ${styles.copyrightMenu}`}
>
<li className='nav-item' className='nav-link'>
Copyrights Brinca - {year}
</li>
<li className='nav-item nav-link'>Copyrights Brinca - {year}</li>
<li className='nav-item'>
<a href={`http://marceloglacial.com`} className='nav-link'>
Developed by Marcelo Glacial
Expand Down
13 changes: 8 additions & 5 deletions components/Header/HeaderNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const HeaderNav = (props) => {
return (
<ul className='navbar-nav ml-auto'>
{menuContent.items.map((item) => {
const { ID, title, slug, child_items } = item;
const { ID, title, slug, url, child_items } = item;
const hasSubMenu = child_items && isOpen;
return (
<li
Expand All @@ -30,8 +30,11 @@ const HeaderNav = (props) => {
onMouseOver={() => child_items && setIsOpen(true)}
onMouseLeave={() => child_items && setIsOpen(false)}
>
<Link href={`/${slug}`} key={ID}>
<a className={`nav-link ${styles.topNavLink}`} href={`/${slug}`}>
<Link href={`/${slug || url}`} key={ID}>
<a
className={`nav-link ${styles.topNavLink}`}
href={`/${slug || url}`}
>
{title}
</a>
</Link>
Expand All @@ -40,10 +43,10 @@ const HeaderNav = (props) => {
{child_items.map((child, index) => {
return (
<li className={`nav-item ${styles.navSubItem}`} key={index}>
<Link href={`/${child.slug}`} key={index}>
<Link href={`/${child.slug || child.url}`} key={index}>
<a
className={`nav-link ${styles.topNavLink}`}
href={`/${child.slug}`}
href={`/${child.slug || child.url}`}
>
{child.title}
</a>
Expand Down

1 comment on commit 8f31ba1

@vercel
Copy link

@vercel vercel bot commented on 8f31ba1 Jun 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.