From 24db1bce1cb787f3255f138b67209ec7958718aa Mon Sep 17 00:00:00 2001 From: Sasha Date: Tue, 7 Nov 2023 01:26:09 +0100 Subject: [PATCH] add disabled state --- src/app/home/components/Keystore.tsx | 8 ++++++-- src/app/home/components/Waku.tsx | 11 ++++++++--- src/components/Button.tsx | 2 ++ src/hooks/useStore.ts | 6 ++++++ src/hooks/useWallet.ts | 3 ++- 5 files changed, 24 insertions(+), 6 deletions(-) diff --git a/src/app/home/components/Keystore.tsx b/src/app/home/components/Keystore.tsx index 41bd76f..97d76ac 100644 --- a/src/app/home/components/Keystore.tsx +++ b/src/app/home/components/Keystore.tsx @@ -6,7 +6,7 @@ import { useRLN, useStore } from "@/hooks"; import { useKeystore } from "@/hooks/useKeystore"; export const Keystore: React.FunctionComponent<{}> = () => { - const { keystoreCredentials } = useStore(); + const { walletConnected, keystoreCredentials } = useStore(); const { onReadCredentials, onRegisterCredentials } = useKeystore(); const { password, onPasswordChanged } = usePassword(); @@ -64,7 +64,11 @@ export const Keystore: React.FunctionComponent<{}> = () => {

Generate new credentials from wallet and register on chain

-
diff --git a/src/app/home/components/Waku.tsx b/src/app/home/components/Waku.tsx index 1e17218..89023dc 100644 --- a/src/app/home/components/Waku.tsx +++ b/src/app/home/components/Waku.tsx @@ -2,7 +2,9 @@ import React from "react"; import { Block } from "@/components/Block"; import { Subtitle } from "@/components/Subtitle"; import { Button } from "@/components/Button"; +import { Status } from "@/components/Status"; import { MessageContent, useWaku } from "@/hooks"; +import { CONTENT_TOPIC } from "@/constants"; export const Waku: React.FunctionComponent<{}> = () => { const { onSend, messages } = useWaku(); @@ -20,9 +22,12 @@ export const Waku: React.FunctionComponent<{}> = () => { return ( - - Waku - + + + Waku + +

Content topic: {CONTENT_TOPIC}

+