Skip to content

Commit

Permalink
feat(example): remove ibc domain example
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed Apr 17, 2023
1 parent 2cff82a commit e3c9708
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions example/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Center, HStack, Spacer, Spinner, Stack, Text } from "@chakra-ui/react";
import { useAccount, useAddressToIbcDomain } from "graz";
import { Center, HStack, Spacer, Stack, Text } from "@chakra-ui/react";
import { useAccount } from "graz";
import type { NextPage } from "next";
import { BalanceList } from "ui/balance-list";
import { ChainSwitcher } from "ui/chain-switcher";
Expand All @@ -10,10 +10,6 @@ import { ToggleTheme } from "ui/toggle-theme";

const HomePage: NextPage = () => {
const { data: accountData, isConnecting, isReconnecting } = useAccount();
const { data: ibcDomain, isLoading: isIbcDomainLoading } = useAddressToIbcDomain({
address: accountData?.bech32Address,
});

return (
<Center minH="100vh">
<Stack bgColor="whiteAlpha.100" boxShadow="md" maxW="md" p={4} rounded="md" spacing={4} w="full">
Expand All @@ -30,10 +26,6 @@ const HomePage: NextPage = () => {
Wallet address: <b>{accountData.bech32Address}</b>
</Text>

<Text>
IBC Domain: <b>{isIbcDomainLoading ? <Spinner /> : ibcDomain?.domainFull || "Not found"}</b>
</Text>

<BalanceList />
<ChainSwitcher />
</>
Expand Down

0 comments on commit e3c9708

Please sign in to comment.