From f0f60b4e00dcb89370ac1cbe4b905faf812b6e51 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 1 Sep 2023 13:06:24 -0500 Subject: [PATCH] display contacts better, get rid of edit --- src/components/ContactViewer.tsx | 63 ++++++++++++++++++++++++-------- 1 file changed, 47 insertions(+), 16 deletions(-) diff --git a/src/components/ContactViewer.tsx b/src/components/ContactViewer.tsx index 2ba0a17..d80e542 100644 --- a/src/components/ContactViewer.tsx +++ b/src/components/ContactViewer.tsx @@ -1,17 +1,18 @@ import { Dialog } from "@kobalte/core"; import { SubmitHandler } from "@modular-forms/solid"; import { Contact } from "@mutinywallet/mutiny-wasm"; -import { createSignal, Match, Switch } from "solid-js"; +import { createSignal, Match, Show, Switch } from "solid-js"; import { useNavigate } from "solid-start"; import close from "~/assets/icons/close.svg"; import { Button, - Card, ContactForm, - NiceP, + KeyValue, + MiniStringShower, showToast, - SmallHeader + SmallHeader, + VStack } from "~/components"; import { useI18n } from "~/i18n/context"; import { toParsedParams } from "~/logic/waila"; @@ -150,16 +151,41 @@ export function ContactViewer(props: {

{props.contact.name}

-

- {props.contact.npub} -

-

- {props.contact.ln_address} -

-

- {props.contact.lnurl} -

- + + + + + + + + + + + + + + {/* TODO: show payment history for a contact */} + {/* - + */} -
+ {/* TODO: implement contact editing */} + {/*
+ +
*/} + +