mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-27 12:45:21 +00:00
Display waku readiness
This commit is contained in:
parent
4e7f75868f
commit
7dcb52444b
@ -137,9 +137,12 @@ function App() {
|
||||
});
|
||||
};
|
||||
|
||||
const wakuReady = !!waku ? 'Waku is ready' : 'Waku is loading';
|
||||
|
||||
return (
|
||||
<div className="App">
|
||||
<header className="App-header">
|
||||
{wakuReady}
|
||||
<button onClick={generateKeyPair} disabled={!provider}>
|
||||
Generate Eth-DM Key Pair
|
||||
</button>
|
||||
@ -150,7 +153,7 @@ function App() {
|
||||
onClick={sendDummyMessage}
|
||||
disabled={!waku || publicKeys.size === 0}
|
||||
>
|
||||
Publish Direct Message
|
||||
Send Direct Message
|
||||
</button>
|
||||
{messages}
|
||||
</header>
|
||||
|
Loading…
x
Reference in New Issue
Block a user