Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 4c5cbb1

Browse files
authored
feat: 🎸 <Link> に passHref を付与した (#302)
1 parent eb4eb9d commit 4c5cbb1

File tree

6 files changed

+30
-10
lines changed

6 files changed

+30
-10
lines changed

components/HumbergerMenu/Navigation.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ const Navigation = () => {
77
<div id="outer-container">
88
<Menu pageWrapId={'page-wrap'} outerContainerId={'outer-container'}>
99
<p className="text-2xl">
10-
<Link href="/">幻水総選挙2022</Link>
10+
<Link href="/" passHref>
11+
幻水総選挙2022
12+
</Link>
1113
</p>
1214
<div className="divide-neutral-50">
1315
<div className="divider"></div>
1416
</div>
15-
<Link href="/events-in-event">イベント内企画</Link>
17+
<Link href="/events-in-event" passHref>
18+
イベント内企画
19+
</Link>
1620
<PreviousWebsites />
1721
</Menu>
1822
</div>

components/NavBar.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ const NavBar: NextPage = () => {
4040
<>
4141
<div className="navbar bg-neutral text-white sticky top-0 z-50">
4242
<div className="text-xl pl-4 font-zen-old-mincho">
43-
<Link href="/">{t.WEBSITE_TITLE}</Link>
43+
<Link href="/" passHref>
44+
{t.WEBSITE_TITLE}
45+
</Link>
4446
</div>
4547

4648
<div className="absolute right-20 bg-neutral text-white">

pages/events-in-event.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ const EventsInEvent: NextPage = () => {
2424
<div className="text-base bg-gray-700 text-white breadcrumbs pl-6 pb-2 sticky top-16 z-50">
2525
<ul>
2626
<li>
27-
<Link href="/">{t.PAGE_TITLE_HOME}</Link>
27+
<Link href="/" passHref>
28+
{t.PAGE_TITLE_HOME}
29+
</Link>
2830
</li>
2931
<li>{t.PAGE_TITLE_PROJECTS}</li>
3032
</ul>

pages/events-in-event/election-campaign.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ const ElectionCampaign: NextPage = () => {
2323
<div className="text-base bg-gray-700 text-white breadcrumbs pl-6 pb-2 sticky top-16 z-50">
2424
<ul>
2525
<li>
26-
<Link href="/">{t.PAGE_TITLE_HOME}</Link>
26+
<Link href="/" passHref>
27+
{t.PAGE_TITLE_HOME}
28+
</Link>
2729
</li>
2830
<li>
29-
<Link href="/events-in-event">{t.PAGE_TITLE_PROJECTS}</Link>
31+
<Link href="/events-in-event" passHref>
32+
{t.PAGE_TITLE_PROJECTS}
33+
</Link>
3034
</li>
3135
<li>{t.PAGE_TITLE_CAMPAIGNING}</li>
3236
</ul>

pages/events-in-event/novels-on-themes.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ const NovelsOnThemes: NextPage = () => {
2323
<div className="text-base bg-gray-700 text-white breadcrumbs pl-6 pb-2 sticky top-16 z-50">
2424
<ul>
2525
<li>
26-
<Link href="/">{t.PAGE_TITLE_HOME}</Link>
26+
<Link href="/" passHref>
27+
{t.PAGE_TITLE_HOME}
28+
</Link>
2729
</li>
2830
<li>
29-
<Link href="/events-in-event">{t.PAGE_TITLE_PROJECTS}</Link>
31+
<Link href="/events-in-event" passHref>
32+
{t.PAGE_TITLE_PROJECTS}
33+
</Link>
3034
</li>
3135
<li>{t.PAGE_TITLE_NOVELS_ON_THEME}</li>
3236
</ul>

pages/events-in-event/op-cl-illustrations.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ const OpClIllustrations: NextPage = () => {
2424
<div className="text-base bg-gray-700 text-white breadcrumbs pl-6 pb-2 sticky top-16 z-50">
2525
<ul>
2626
<li>
27-
<Link href="/">{t.PAGE_TITLE_HOME}</Link>
27+
<Link href="/" passHref>
28+
{t.PAGE_TITLE_HOME}
29+
</Link>
2830
</li>
2931
<li>
30-
<Link href="/events-in-event">{t.PAGE_TITLE_PROJECTS}</Link>
32+
<Link href="/events-in-event" passHref>
33+
{t.PAGE_TITLE_PROJECTS}
34+
</Link>
3135
</li>
3236
<li>{t.PAGE_TITLE_OP_CL_ILLUSTS}</li>
3337
</ul>

0 commit comments

Comments
 (0)