Skip to content
Snippets Groups Projects
Commit 5b30b119 authored by druid's avatar druid
Browse files

processing shortcuts for desktop navigation

parent e25e7814
No related branches found
No related tags found
No related merge requests found
export interface ShortcutLinks {
shortcut_title: string;
shortcut_url: string;
shortcut_is_external: string;
shortcut_aria_label: string;
}
export interface DesktopLinks { export interface DesktopLinks {
label: string; label: string;
url: string; url: string;
description: string; description: string;
menuLinkId: string; menuLinkId: string;
items: Array<DesktopLinks>; items: Array<DesktopLinks>;
shortcuts: Array<ShortcutLinks>;
} }
import {ColorVariant} from '../../../utils/utils'; import {ColorVariant} from '../../../utils/utils';
...@@ -115,6 +123,8 @@ export class HyDesktopMenuLinks { ...@@ -115,6 +123,8 @@ export class HyDesktopMenuLinks {
<nav role={'navigation'}> <nav role={'navigation'}>
{this._dataDesktopLinks && {this._dataDesktopLinks &&
this._dataDesktopLinks.map((link) => { this._dataDesktopLinks.map((link) => {
console.log(link.label);
console.log(link.shortcuts);
return ( return (
<ul class={'desktop-menu first'} menu-link-id={link.menuLinkId}> <ul class={'desktop-menu first'} menu-link-id={link.menuLinkId}>
<li class={'first'}> <li class={'first'}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment