feat: add site link to connect button dropdown

This commit is contained in:
DIYgod 2023-04-15 04:55:11 +01:00
parent a224448e4c
commit d0493b51df
No known key found for this signature in database
2 changed files with 10 additions and 1 deletions

View File

@ -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"
}

View File

@ -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") || "",