Display waku readiness

This commit is contained in:
Franck Royer 2021-06-16 16:36:27 +10:00
parent 4e7f75868f
commit 7dcb52444b
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 4 additions and 1 deletions

View File

@ -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>