gatsby-plugin-drupal-menus
Advanced tools
Comparing version 1.0.5 to 1.0.6
10
index.js
@@ -5,3 +5,3 @@ import React from "react" | ||
function createMenuHierarchy(menuData, menuName) { | ||
const createMenuHierarchy = (menuData, menuName) => { | ||
let tree = [], | ||
@@ -41,3 +41,3 @@ mappedArr = {}, | ||
function buildLink(link) { | ||
const buildLink = link => { | ||
if(!link.external && link.link.uri_alias) { | ||
@@ -52,3 +52,3 @@ return ( <Link activeClassName="active" to={link.link.uri_alias}> | ||
} else { | ||
return ( <a href={link.link.uri_alias} className={'external'}> | ||
return ( <a href={link.link.uri} className={'external'}> | ||
{link.title} | ||
@@ -59,3 +59,3 @@ </a>) | ||
function buildMenu(menuArray){ | ||
const buildMenu = menuArray => { | ||
if(!menuArray) { | ||
@@ -83,3 +83,3 @@ return | ||
function generateMenu(menuLinks, menuName) { | ||
const generateMenu = (menuLinks, menuName) => { | ||
let menu | ||
@@ -86,0 +86,0 @@ |
{ | ||
"name": "gatsby-plugin-drupal-menus", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Adds support for nested hierarchical menus from Drupal 8/9 in Gatsby.", | ||
@@ -25,3 +25,4 @@ "main": "index.js", | ||
}, | ||
"homepage": "https://github.com/xaviemirmon/gatsby_drupal_menus#readme" | ||
"homepage": "https://github.com/xaviemirmon/gatsby_drupal_menus#readme", | ||
"dependencies": {} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5170