From e44760ff2fcbac85e21ce41f5390929c9c9f48e5 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 17 Mar 2023 23:55:00 +0000 Subject: [PATCH] feat: swap tooltip --- public/locales/zh/dashboard.json | 3 ++- src/pages/dashboard/[subdomain]/tokens.tsx | 21 +++++++++++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/public/locales/zh/dashboard.json b/public/locales/zh/dashboard.json index b04d9119..18eeae0a 100644 --- a/public/locales/zh/dashboard.json +++ b/public/locales/zh/dashboard.json @@ -161,5 +161,6 @@ "$XLOG is related to xLog DAO, but it's too early now, please stay tuned.": "$XLOG 与 xLog DAO 相关,但现在还为时尚早,敬请期待。", "Stay tuned": "敬请期待", "This is a token used for interaction on the Crossbell blockchain, which can be claimed for free from the faucet, so there's no need to worry about its balance.": "这是一个用于 Crossbell 区块链上交互的代币,可以从水龙头免费领取,所以不用担心它的余额。", - "Balance": "余额" + "Balance": "余额", + "Tutorial coming soon": "教程即将推出" } \ No newline at end of file diff --git a/src/pages/dashboard/[subdomain]/tokens.tsx b/src/pages/dashboard/[subdomain]/tokens.tsx index c7e60f3d..e279b657 100644 --- a/src/pages/dashboard/[subdomain]/tokens.tsx +++ b/src/pages/dashboard/[subdomain]/tokens.tsx @@ -17,6 +17,8 @@ import { Button } from "~/components/ui/Button" import { MIRA_LINK } from "~/lib/env" import { UniLink } from "~/components/ui/UniLink" import { useRouter } from "next/router" +import { getSiteLink } from "~/lib/helpers" +import { Tooltip } from "~/components/ui/Tooltip" export const getServerSideProps: GetServerSideProps = serverSidePropsHandler( async (ctx) => { @@ -59,7 +61,12 @@ export default function TokensPage() {