remove nostr dev kit dep

This commit is contained in:
Paul Miller
2023-10-28 02:15:17 -05:00
parent 905f18ff05
commit 8e19533e7e
6 changed files with 281 additions and 697 deletions

View File

@@ -11,7 +11,7 @@ import rightArrow from "~/assets/icons/right-arrow.svg";
import { AmountSats, VStack } from "~/components";
import { useI18n } from "~/i18n/context";
import { useMegaStore } from "~/state/megaStore";
import { fetchZaps, getHexpubFromNpub } from "~/utils";
import { fetchZaps, hexpubFromNpub } from "~/utils";
import { timeAgo } from "~/utils/prettyPrintTime";
function Avatar(props: { image_url?: string }) {
@@ -37,7 +37,7 @@ export function NostrActivity() {
const [data, { refetch }] = createResource(state.npub, fetchZaps);
const userHexpub = getHexpubFromNpub(state.npub);
const [userHexpub] = createResource(state.npub, hexpubFromNpub);
function nameFromHexpub(hexpub: string): string {
const profile = data.latest?.profiles[hexpub];
@@ -70,7 +70,7 @@ export function NostrActivity() {
class="rounded-lg bg-m-grey-800 p-2"
classList={{
"outline outline-m-blue":
userHexpub === zap.to_hexpub
userHexpub() === zap.to_hexpub
}}
>
<div class="grid grid-cols-[1fr_auto_1fr] gap-4">