diff --git a/examples/rln-js/src/app/home/components/Blockchain.tsx b/examples/rln-js/src/app/home/components/Blockchain.tsx index b4a32cf..52cd9cb 100644 --- a/examples/rln-js/src/app/home/components/Blockchain.tsx +++ b/examples/rln-js/src/app/home/components/Blockchain.tsx @@ -4,8 +4,8 @@ import { Subtitle } from "@/components/Subtitle"; export const Blockchain: React.FunctionComponent<{}> = () => { return ( - - + + Contract diff --git a/examples/rln-js/src/app/home/components/Header.tsx b/examples/rln-js/src/app/home/components/Header.tsx index 348b50c..9fbd95b 100644 --- a/examples/rln-js/src/app/home/components/Header.tsx +++ b/examples/rln-js/src/app/home/components/Header.tsx @@ -9,7 +9,7 @@ export const Header: React.FunctionComponent<{}> = () => { return ( <> - + Waku RLN diff --git a/examples/rln-js/src/app/home/components/Keystore.tsx b/examples/rln-js/src/app/home/components/Keystore.tsx index 8908416..4d8000d 100644 --- a/examples/rln-js/src/app/home/components/Keystore.tsx +++ b/examples/rln-js/src/app/home/components/Keystore.tsx @@ -8,18 +8,18 @@ export const Keystore: React.FunctionComponent<{}> = () => { const { keystoreStatus } = useStore(); return ( - + Keystore
- +
- + - +

Generate new credentials from wallet

- +

Read from Keystore

diff --git a/examples/rln-js/src/app/home/components/KeystoreDetails.tsx b/examples/rln-js/src/app/home/components/KeystoreDetails.tsx index a7135ad..0882e18 100644 --- a/examples/rln-js/src/app/home/components/KeystoreDetails.tsx +++ b/examples/rln-js/src/app/home/components/KeystoreDetails.tsx @@ -2,33 +2,33 @@ import { Block, BlockTypes } from "@/components/Block"; export const KeystoreDetails: React.FunctionComponent<{}> = () => { return ( - - + +

Keystore

none
- +

Membership ID

none
- +

Secret Hash

none
- +

Commitment

none
- +

Nullifier

none
- +

Trapdoor

none
diff --git a/examples/rln-js/src/app/home/components/Waku.tsx b/examples/rln-js/src/app/home/components/Waku.tsx index c2826ed..13c4f58 100644 --- a/examples/rln-js/src/app/home/components/Waku.tsx +++ b/examples/rln-js/src/app/home/components/Waku.tsx @@ -8,11 +8,11 @@ export const Waku: React.FunctionComponent<{}> = () => { const { wakuStatus } = useStore(); return ( - + Waku - + - + - + - + - +

Messages

diff --git a/examples/rln-js/src/app/home/page.tsx b/examples/rln-js/src/app/home/page.tsx index 9be4c13..a9022c3 100644 --- a/examples/rln-js/src/app/home/page.tsx +++ b/examples/rln-js/src/app/home/page.tsx @@ -7,7 +7,7 @@ import { KeystoreDetails } from "./components/KeystoreDetails"; export default function Home() { return ( -
+
diff --git a/examples/rln-js/src/app/page.tsx b/examples/rln-js/src/app/page.tsx index 0763717..07a6db7 100644 --- a/examples/rln-js/src/app/page.tsx +++ b/examples/rln-js/src/app/page.tsx @@ -1,3 +1,4 @@ import Home from "@/app/home/page"; +export const dynamic = "force-static"; export default Home; diff --git a/examples/rln-js/src/components/Block.tsx b/examples/rln-js/src/components/Block.tsx index 5b33c4f..4999da5 100644 --- a/examples/rln-js/src/components/Block.tsx +++ b/examples/rln-js/src/components/Block.tsx @@ -4,8 +4,6 @@ export enum BlockTypes { type BlockProps = { children: any; - top?: string; - bottom?: string; type?: BlockTypes; className?: string; }; @@ -18,11 +16,7 @@ export const Block: React.FunctionComponent = (props) => { const restClassNames = props.className || ""; return ( -
+
{props.children}
); diff --git a/examples/rln-js/src/components/Button.tsx b/examples/rln-js/src/components/Button.tsx index a062806..78585ca 100644 --- a/examples/rln-js/src/components/Button.tsx +++ b/examples/rln-js/src/components/Button.tsx @@ -1,17 +1,18 @@ type ButtonProps = { children: any; - top?: string; - left?: string; + className?: string; onClick?: (e?: any) => void; }; -export const Button: React.FunctionComponent = (props) => ( - -); +export const Button: React.FunctionComponent = (props) => { + return ( + + ); +};