feat: swap tooltip
This commit is contained in:
@@ -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": "教程即将推出"
|
||||
}
|
||||
@@ -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() {
|
||||
<ul className="ml-2">
|
||||
<li>
|
||||
1.{" "}
|
||||
<UniLink className="underline" href="">
|
||||
<UniLink
|
||||
className="underline"
|
||||
href={`${getSiteLink({
|
||||
subdomain: "xlog",
|
||||
})}/creator-incentive-plan`}
|
||||
>
|
||||
{t("Creator incentive program.")}
|
||||
</UniLink>
|
||||
</li>
|
||||
@@ -82,11 +89,13 @@ export default function TokensPage() {
|
||||
</>
|
||||
),
|
||||
buttons: (
|
||||
<>
|
||||
<Button onClick={() => window.open(MIRA_LINK)}>
|
||||
{t("Swap to USDC")}
|
||||
</Button>
|
||||
</>
|
||||
<div className="w-fit">
|
||||
<Tooltip label={t("Tutorial coming soon")}>
|
||||
<Button onClick={() => window.open(MIRA_LINK)}>
|
||||
<>{t("Swap to USDC") || ""}</>
|
||||
</Button>
|
||||
</Tooltip>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user