diff --git a/README.md b/README.md index 6df8c44..a92b173 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ Nostr Army Knife webExtension +- conversion between nostr hexid and NIP-19 (bech32-encoded entities) + +- link to njump me + [Chrome Web Store](https://chromewebstore.google.com/detail/nake/pckmdjknadbfalfohabbccmffoohlamk) [Firefox Addon Store](https://addons.mozilla.org/ja/firefox/addon/nake/) diff --git a/entrypoints/components/CopyButton.tsx b/entrypoints/components/CopyButton.tsx index 7ff6e48..5b5f124 100644 --- a/entrypoints/components/CopyButton.tsx +++ b/entrypoints/components/CopyButton.tsx @@ -1,4 +1,4 @@ -import { Accessor, Show, createSignal } from "solid-js"; +import { Accessor, Show, createMemo, createSignal } from "solid-js"; import Button from "./Button"; import { className } from "@/util"; import Link from "./Link"; @@ -70,6 +70,16 @@ export default function CopyButton({ }, 2000); }); }; + const href = createMemo(() => { + if (text) { + if (typeof text === "string") { + return text; + } else { + return text(); + } + } + }); + return (