feat: add swap tutorial

This commit is contained in:
DIYgod
2023-03-20 18:58:17 +00:00
parent e17bb98ac1
commit 7606b1e91c
3 changed files with 35 additions and 8 deletions
+2 -1
View File
@@ -156,11 +156,12 @@
"Creator incentive program." : "创作者激励计划。",
"Participate in events.": "参加活动。",
"Swap from USDC.": "从 USDC 兑换。",
"Received tips and sponsorships from readers.": "从读者收到打赏和赞助。",
"Swap to USDC": "兑换到 USDC",
"Free Claim": "免费领取",
"$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": "余额",
"Tutorial coming soon": "教程即将推出"
"Swap Tutorial": "兑换教程"
}
+22 -1
View File
@@ -79,5 +79,26 @@
"sion",
"magren",
"lolik",
"yuhangch"
"yuhangch",
"ssshooter",
"baiyi-5736",
"kendrickzou-8",
"nafidurmus",
"dagora",
"aiirobyte",
"onweb3",
"anghunk",
"agrislis",
"jigsaw",
"sakura-6601",
"bai-2800",
"rustynail",
"ximu-3371",
"xn--37q595dihas5a-4315",
"batgirl",
"exodus-exodus",
"xn--psu263e-5088",
"cryptonerdcn",
"fzdwx-2094",
"ovler"
]
+11 -6
View File
@@ -85,16 +85,21 @@ export default function TokensPage() {
{t("Swap from USDC.")}
</UniLink>
</li>
<li>4. {t("Received tips and sponsorships from readers.")}</li>
</ul>
</>
),
buttons: (
<div className="w-fit">
<Tooltip label={t("Tutorial coming soon")}>
<Button onClick={() => window.open(MIRA_LINK)}>
<>{t("Swap to USDC") || ""}</>
</Button>
</Tooltip>
<div className="w-fit space-x-4">
<Button onClick={() => window.open(MIRA_LINK)}>
<>{t("Swap to USDC") || ""}</>
</Button>
<UniLink
className="underline text-zinc-500"
href={`${getSiteLink({ subdomain: "atlas" })}/swap-mira-for-usdc`}
>
{t("Swap Tutorial")}
</UniLink>
</div>
),
},