remove react helper/ui-toolkit demo components
This commit is contained in:
parent
bb485d5783
commit
195fff27ab
@ -1,12 +1,15 @@
|
|||||||
import { Callout, Button } from '@vegaprotocol/ui-toolkit';
|
import { Callout, Button } from '@vegaprotocol/ui-toolkit';
|
||||||
import { ReactHelpers, useVegaWallet } from '@vegaprotocol/react-helpers';
|
import { useVegaWallet } from '@vegaprotocol/react-helpers';
|
||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
import { rest } from '../lib/connectors';
|
import { rest } from '../lib/connectors';
|
||||||
import { LocalStorage } from '@vegaprotocol/storage';
|
import { LocalStorage } from '@vegaprotocol/storage';
|
||||||
|
|
||||||
export function Index() {
|
export function Index() {
|
||||||
|
// Get keys from vega wallet immediately
|
||||||
useEagerConnect();
|
useEagerConnect();
|
||||||
|
|
||||||
const { publicKey, publicKeys, selectPublicKey } = useVegaWallet();
|
const { publicKey, publicKeys, selectPublicKey } = useVegaWallet();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="m-24 ">
|
<div className="m-24 ">
|
||||||
<Callout
|
<Callout
|
||||||
@ -37,6 +40,7 @@ export function Index() {
|
|||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
)}
|
)}
|
||||||
|
<hr />
|
||||||
<h2>Public keys</h2>
|
<h2>Public keys</h2>
|
||||||
<pre>{JSON.stringify(publicKeys, null, 2)}</pre>
|
<pre>{JSON.stringify(publicKeys, null, 2)}</pre>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user