@@ -11,11 +11,12 @@ import {
1111 NavbarToggler ,
1212 NavLink ,
1313} from "reactstrap"
14- import { graphql , Link , StaticQuery } from "gatsby"
14+ import { graphql , StaticQuery } from "gatsby"
1515import PropTypes from "prop-types"
1616
1717import Announcement from "./Announcement"
1818import NavScrollItem from "./NavScrollItem"
19+ import Link from "./Link"
1920import * as Icons from "./Icons"
2021
2122const NavItem = ( { label, url, subitems } ) => {
@@ -46,7 +47,7 @@ const NavItem = ({ label, url, subitems }) => {
4647 { item . label }
4748 </ NavLink >
4849 ) : (
49- < Link to = { item . url } activeClassName = "active" >
50+ < Link url = { item . url } activeClassName = "active" >
5051 { item . label }
5152 </ Link >
5253 ) }
@@ -70,7 +71,7 @@ const NavItem = ({ label, url, subitems }) => {
7071
7172 return (
7273 < li className = "nav-item" >
73- < Link to = { url } activeClassName = "active" >
74+ < Link url = { url } activeClassName = "active" >
7475 { label }
7576 </ Link >
7677 </ li >
@@ -152,14 +153,14 @@ export const HeaderTemplate = ({ navItems = [] }) => {
152153 </ Nav >
153154 < ul className = "external_btn" >
154155 < li className = "nav-item" >
155- < a
156- href = "https://discordapp.com/invite/wYezN7v"
156+ < Link
157+ url = "https://discordapp.com/invite/wYezN7v"
157158 target = "_blank"
158159 className = "discord"
159160 rel = "noopener noreferrer"
160161 >
161162 < Icons . Discord />
162- </ a >
163+ </ Link >
163164 < div className = "hint" >
164165 < Icons . Dashboard />
165166 < span >
@@ -168,13 +169,13 @@ export const HeaderTemplate = ({ navItems = [] }) => {
168169 </ div >
169170 </ li >
170171 < li className = "nav-item" >
171- < a
172- href = "https://dashboard.keep.network/"
172+ < Link
173+ url = "https://dashboard.keep.network/"
173174 className = "btn btn-primary btn-small nav-item"
174175 rel = "noopener noreferrer"
175176 >
176177 Launch
177- </ a >
178+ </ Link >
178179 </ li >
179180 </ ul >
180181 </ Collapse >
0 commit comments