feat: add site link to connect button dropdown
This commit is contained in:
parent
a224448e4c
commit
d0493b51df
|
|
@ -77,5 +77,6 @@
|
|||
"Filter out possible low-quality content based on AI ratings.": "基于 AI 评分过滤可能质量不佳的内容。",
|
||||
"Refreshing": "刷新中",
|
||||
"Search for your interest": "搜索你感兴趣的内容",
|
||||
"results": "条结果"
|
||||
"results": "条结果",
|
||||
"My xLog": "我的 xLog"
|
||||
}
|
||||
|
|
@ -30,6 +30,7 @@ import {
|
|||
import { Menu } from "~/components/ui/Menu"
|
||||
import { useTranslation } from "next-i18next"
|
||||
import { cn } from "~/lib/utils"
|
||||
import { getSiteLink } from "~/lib/helpers"
|
||||
|
||||
type HeaderLinkType = {
|
||||
icon?: React.ReactNode
|
||||
|
|
@ -106,6 +107,13 @@ export const ConnectButton: React.FC<{
|
|||
}, [balance])
|
||||
|
||||
const dropdownLinks: HeaderLinkType[] = [
|
||||
{
|
||||
icon: "i-mingcute:home-1-line",
|
||||
label: t("My xLog") || "",
|
||||
url: getSiteLink({
|
||||
subdomain: userSites.data?.[0].username || "",
|
||||
}),
|
||||
},
|
||||
{
|
||||
icon: "i-mingcute:grid-line",
|
||||
label: t("Dashboard") || "",
|
||||
|
|
|
|||
Loading…
Reference in New Issue