Skip to content

Commit 7dc2856

Browse files
committed
Fix links
Better to use simplified form for `to` since it compiles to `a` in production build.
1 parent f5c7942 commit 7dc2856

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/Footer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default (props) => {
1414
</section>
1515

1616
<section className="footer__middle">
17-
<Link to={{ pathname: '/' }}>
17+
<Link to="/">
1818
<Cube depth={ 18 } hover />
1919
</Link>
2020
</section>

components/Navigation.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default ({ home = '/', pages, onToggleNav }) => (
1010
<button id="menu-btn" className="navigation__mobilebtn" onClick={onToggleNav}>
1111
Open navigation
1212
</button>
13-
<Link className="navigation__logo" to={{ pathname: home }}>
13+
<Link className="navigation__logo" to="/">
1414
<Logo theme="light" />
1515
</Link>
1616

0 commit comments

Comments
 (0)