Skip to content

Commit

Permalink
Apply Prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelwhitton committed Dec 4, 2024
1 parent e0d18b0 commit 6014d3e
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/layout/header/index.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import React from "react"
import { Link } from "gatsby"
import React from 'react';
import { Link } from 'gatsby';

import {
Navbar,
NavMenu,
} from "@pantheon-systems/pds-toolkit-react"
import { Navbar, NavMenu } from '@pantheon-systems/pds-toolkit-react';

import { MOBILE_MENU_BREAKPOINT } from '../../vars/responsive'
import { MOBILE_MENU_BREAKPOINT } from '../../vars/responsive';

import "./style.css"
import './style.css';

// Links for NavMenu component.
const mainNavigationLinks = [
{
label: "Documentation",
label: 'Documentation',
links: [
{
linkContent: (
Expand Down Expand Up @@ -118,16 +115,21 @@ const mainNavigationLinks = [
</a>
),
},
]

];

const Header = ({ page }) => (
<>
<a id="skip-to-main" className="pds-skiplink" href="#docs-main">
Skip to main content
</a>

<Navbar logoLinkContent={<a href="https://pantheon.io" target="_blank" rel="nofollow">Pantheon Home</a>}>
<Navbar
logoLinkContent={
<a href="https://pantheon.io" target="_blank" rel="nofollow">
Pantheon Home
</a>
}
>
<NavMenu
slot="items-left"
ariaLabel="Main Navigation"
Expand All @@ -152,6 +154,6 @@ const Header = ({ page }) => (
</div>
</Navbar>
</>
)
);

export default Header
export default Header;

0 comments on commit 6014d3e

Please sign in to comment.