Skip to content

Commit 5574d4b

Browse files
committed
Update TokenGate stories
1 parent e204d49 commit 5574d4b

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Button } from '@chakra-ui/react';
2-
import { NETWORKS, useWallet } from '@web3-ui/hooks';
1+
import { Container, Heading } from '@chakra-ui/react';
2+
import { NETWORKS } from '@web3-ui/hooks';
33
import React from 'react';
44
import { ConnectWallet, Provider } from '..';
55
import { TokenGate } from './TokenGate';
@@ -23,21 +23,21 @@ export default {
2323
};
2424

2525
export const Default = () => {
26-
const { correctNetwork, switchToCorrectNetwork } = useWallet();
27-
2826
return (
29-
<>
30-
{!correctNetwork && (
31-
<Button onClick={switchToCorrectNetwork}>
32-
Switch to correct network
33-
</Button>
34-
)}
35-
<TokenGate
36-
tokenContractAddress="0x08149745590e9025b52b6801e9dd3E752e60F3A2"
37-
deniedContent={<p>You don't have enough dUSDT</p>}
38-
>
39-
<div>You have more than 1 dUSDT.</div>
40-
</TokenGate>
41-
</>
27+
<TokenGate
28+
tokenContractAddress="0x08149745590e9025b52b6801e9dd3E752e60F3A2"
29+
deniedContent={
30+
<Container mt={10}>
31+
<Heading>You don't own enough $dUSDT</Heading>
32+
</Container>
33+
}
34+
>
35+
<Container mt={10}>
36+
<Heading>
37+
{' '}
38+
You are a fellow $dUSDT holder. Welcome to the club! 🥳
39+
</Heading>
40+
</Container>
41+
</TokenGate>
4242
);
4343
};

0 commit comments

Comments
 (0)