From c3630f85bd221ecf875b20337e5c6a452c613362 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 4 Sep 2024 18:09:12 +0800 Subject: [PATCH] feat: new power page --- .../tabs/wallet/my-wallet-section/index.tsx | 24 +++++++++++++++---- .../wallet/my-wallet-section/withdraw.tsx | 19 +++++++++++++++ 2 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/withdraw.tsx diff --git a/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/index.tsx b/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/index.tsx index 4d0f03a14..cd0a01c7b 100644 --- a/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/index.tsx +++ b/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/index.tsx @@ -1,5 +1,5 @@ import { useWhoami } from "@renderer/atoms/user" -import { Divider } from "@renderer/components/ui/divider" +import { CopyButton } from "@renderer/components/ui/code-highlighter" import { LoadingWithIcon } from "@renderer/components/ui/loading" import { Tooltip, @@ -13,6 +13,7 @@ import { useWallet } from "@renderer/queries/wallet" import { ClaimDailyReward } from "./claim-daily-reward" import { CreateWallet } from "./create-wallet" +import { WithdrawButton } from "./withdraw" export const MyWalletSection = () => { const user = useWhoami() @@ -37,15 +38,28 @@ export const MyWalletSection = () => { return (
- -
+
+

Power is an ERC-20 token on the VSL blockchain.

+

You can claim 2 free Power daily, which can be used to tip RSS entries on Follow.

+
+ + + +
{BigInt(myWallet.dailyPowerToken || 0n) + BigInt(myWallet.cashablePowerToken || 0n)} - +
+ + +
-
diff --git a/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/withdraw.tsx b/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/withdraw.tsx new file mode 100644 index 000000000..aad57ed08 --- /dev/null +++ b/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/withdraw.tsx @@ -0,0 +1,19 @@ +import { TooltipTrigger } from "@radix-ui/react-tooltip" +import { Button } from "@renderer/components/ui/button" +import { Tooltip, TooltipContent } from "@renderer/components/ui/tooltip" + +export const WithdrawButton = () => ( + + + + + + Comming soon + + +)