fix(ui): заменить <a> на <Link> для internal nav routes (build error @next/next/no-html-link-for-pages)
This commit is contained in:
parent
65c77b96b6
commit
e5c5b2de52
1 changed files with 14 additions and 12 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
import { useState } from "react";
|
||||
|
||||
import Link from "next/link";
|
||||
|
||||
import {
|
||||
BarChart3,
|
||||
Building2,
|
||||
|
|
@ -157,7 +159,7 @@ export default function HomePage() {
|
|||
zIndex: 100,
|
||||
}}
|
||||
>
|
||||
<a
|
||||
<Link
|
||||
href="/"
|
||||
style={{
|
||||
fontWeight: 700,
|
||||
|
|
@ -167,9 +169,9 @@ export default function HomePage() {
|
|||
}}
|
||||
>
|
||||
GenDesign
|
||||
</a>
|
||||
</Link>
|
||||
<div style={{ display: "flex", gap: 24, alignItems: "center" }}>
|
||||
<a
|
||||
<Link
|
||||
href="/analytics"
|
||||
style={{
|
||||
fontSize: 14,
|
||||
|
|
@ -178,8 +180,8 @@ export default function HomePage() {
|
|||
}}
|
||||
>
|
||||
Аналитика
|
||||
</a>
|
||||
<a
|
||||
</Link>
|
||||
<Link
|
||||
href="/site-finder"
|
||||
style={{
|
||||
fontSize: 14,
|
||||
|
|
@ -188,8 +190,8 @@ export default function HomePage() {
|
|||
}}
|
||||
>
|
||||
Site Finder
|
||||
</a>
|
||||
<a
|
||||
</Link>
|
||||
<Link
|
||||
href="/trade-in/"
|
||||
style={{
|
||||
fontSize: 14,
|
||||
|
|
@ -198,8 +200,8 @@ export default function HomePage() {
|
|||
}}
|
||||
>
|
||||
Trade-In
|
||||
</a>
|
||||
<a
|
||||
</Link>
|
||||
<Link
|
||||
href="/concept"
|
||||
style={{
|
||||
fontSize: 14,
|
||||
|
|
@ -208,8 +210,8 @@ export default function HomePage() {
|
|||
}}
|
||||
>
|
||||
Концепция
|
||||
</a>
|
||||
<a
|
||||
</Link>
|
||||
<Link
|
||||
href="/admin/scrape/all"
|
||||
style={{
|
||||
fontSize: 14,
|
||||
|
|
@ -218,7 +220,7 @@ export default function HomePage() {
|
|||
}}
|
||||
>
|
||||
Админ
|
||||
</a>
|
||||
</Link>
|
||||
<button
|
||||
onClick={() => setModalOpen(true)}
|
||||
style={{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue