mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-28 18:53:47 +01:00
add warning to wallet
This commit is contained in:
parent
dfb7a6e771
commit
ceddaf1e9d
@ -1,5 +1,17 @@
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { Button, Tab, TabList, TabPanel, TabPanels, Tabs, useToast } from "@chakra-ui/react";
|
import {
|
||||||
|
Alert,
|
||||||
|
AlertDescription,
|
||||||
|
AlertIcon,
|
||||||
|
AlertTitle,
|
||||||
|
Button,
|
||||||
|
Tab,
|
||||||
|
TabList,
|
||||||
|
TabPanel,
|
||||||
|
TabPanels,
|
||||||
|
Tabs,
|
||||||
|
useToast,
|
||||||
|
} from "@chakra-ui/react";
|
||||||
import { kinds } from "nostr-tools";
|
import { kinds } from "nostr-tools";
|
||||||
import { WalletBalanceQuery } from "applesauce-wallet/queries";
|
import { WalletBalanceQuery } from "applesauce-wallet/queries";
|
||||||
import { CreateWallet } from "applesauce-wallet/actions";
|
import { CreateWallet } from "applesauce-wallet/actions";
|
||||||
@ -56,6 +68,12 @@ export default function WalletHomeView() {
|
|||||||
title="Wallet"
|
title="Wallet"
|
||||||
actions={wallet?.locked && <WalletUnlockButton colorScheme="primary" ms="auto" size="sm" />}
|
actions={wallet?.locked && <WalletUnlockButton colorScheme="primary" ms="auto" size="sm" />}
|
||||||
>
|
>
|
||||||
|
<Alert status="error" mb="4">
|
||||||
|
<AlertIcon />
|
||||||
|
<AlertTitle>Work in progress!</AlertTitle>
|
||||||
|
<AlertDescription>Do not put money into this wallet. it has bugs that will loose your money</AlertDescription>
|
||||||
|
</Alert>
|
||||||
|
|
||||||
{wallet ? (
|
{wallet ? (
|
||||||
<WalletBalanceCard pubkey={account.pubkey} w="full" maxW="2xl" mx="auto" />
|
<WalletBalanceCard pubkey={account.pubkey} w="full" maxW="2xl" mx="auto" />
|
||||||
) : (
|
) : (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user