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