chore(nav): rename homepage label to 发现
This commit is contained in:
@@ -23,7 +23,7 @@ export default function DashboardLayout({ children }: { children: React.ReactNod
|
|||||||
{isAuthenticated && currentRole === "consumer" ? (
|
{isAuthenticated && currentRole === "consumer" ? (
|
||||||
<div className="flex min-h-[50vh] items-center justify-center">
|
<div className="flex min-h-[50vh] items-center justify-center">
|
||||||
<Button asChild>
|
<Button asChild>
|
||||||
<Link href="/">首页</Link>
|
<Link href="/">发现</Link>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -53,13 +53,13 @@ export function Header() {
|
|||||||
const navLinks =
|
const navLinks =
|
||||||
currentRole === "consumer"
|
currentRole === "consumer"
|
||||||
? [
|
? [
|
||||||
{ href: "/", label: "首页" },
|
{ href: "/", label: "发现" },
|
||||||
{ href: "/search", label: "找陪玩" },
|
{ href: "/search", label: "找陪玩" },
|
||||||
{ href: "/community", label: "社区" },
|
{ href: "/community", label: "社区" },
|
||||||
{ href: "/chat", label: "消息" },
|
{ href: "/chat", label: "消息" },
|
||||||
]
|
]
|
||||||
: [
|
: [
|
||||||
{ href: "/", label: "首页" },
|
{ href: "/", label: "发现" },
|
||||||
{ href: "/community", label: "社区" },
|
{ href: "/community", label: "社区" },
|
||||||
{ href: "/orders", label: "订单" },
|
{ href: "/orders", label: "订单" },
|
||||||
{ href: "/chat", label: "消息" },
|
{ href: "/chat", label: "消息" },
|
||||||
|
|||||||
Reference in New Issue
Block a user