File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
packages/core/src/components/TokenGate Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 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' ;
3
3
import React from 'react' ;
4
4
import { ConnectWallet , Provider } from '..' ;
5
5
import { TokenGate } from './TokenGate' ;
@@ -23,21 +23,21 @@ export default {
23
23
} ;
24
24
25
25
export const Default = ( ) => {
26
- const { correctNetwork, switchToCorrectNetwork } = useWallet ( ) ;
27
-
28
26
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 >
42
42
) ;
43
43
} ;
You can’t perform that action at this time.
0 commit comments