2024-02-21 18:01:41 -06:00
|
|
|
import { useState } from 'react';
|
|
|
|
import Connect from './Connect';
|
2024-02-23 13:48:43 -06:00
|
|
|
import UpdateMessage from './UpdateMessage';
|
2024-03-06 16:50:59 -06:00
|
|
|
import QueryMessage from './QueryMessage';
|
|
|
|
import QueryRepBalance from './QueryRepBalance';
|
2024-02-21 18:01:41 -06:00
|
|
|
import './App.css';
|
|
|
|
|
|
|
|
function App() {
|
|
|
|
const [publicKey, setPublicKey] = useState(null);
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Connect setPublicKey={setPublicKey} />
|
|
|
|
<div>
|
|
|
|
{publicKey !== null && (
|
|
|
|
<>
|
|
|
|
Wallet connected:
|
|
|
|
{' '}
|
|
|
|
{publicKey}
|
|
|
|
<br />
|
2024-02-23 13:48:43 -06:00
|
|
|
<UpdateMessage publicKey={publicKey} />
|
2024-03-06 16:50:59 -06:00
|
|
|
<QueryMessage />
|
|
|
|
<br />
|
|
|
|
<QueryRepBalance publicKey={publicKey} />
|
2024-02-21 18:01:41 -06:00
|
|
|
</>
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|