2022-03-25 07:44:10 +00:00
|
|
|
import { useWeb3React } from '@web3-react/core';
|
|
|
|
import { Web3Container } from '../../../components/web3-container';
|
|
|
|
|
|
|
|
const Deposit = () => {
|
|
|
|
return (
|
|
|
|
<Web3Container>
|
|
|
|
<div>
|
|
|
|
<h1>Deposit</h1>
|
|
|
|
<Info />
|
|
|
|
</div>
|
|
|
|
</Web3Container>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
const Info = () => {
|
2022-03-28 19:34:45 +00:00
|
|
|
const { isActive, chainId, account } = useWeb3React();
|
2022-03-25 07:44:10 +00:00
|
|
|
if (!isActive) {
|
|
|
|
return <div>Not active</div>;
|
|
|
|
}
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<p>{chainId}</p>
|
2022-03-28 19:34:45 +00:00
|
|
|
<p>{account ? account : 'No account'}</p>
|
2022-03-25 07:44:10 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Deposit;
|