diff --git a/src/components/ActivityItem.tsx b/src/components/ActivityItem.tsx index e6283b2..f2ce37b 100644 --- a/src/components/ActivityItem.tsx +++ b/src/components/ActivityItem.tsx @@ -46,6 +46,7 @@ export const ActivityAmount: ParentComponent<{ function LabelCircle(props: { name?: string; + image_url?: string; contact: boolean; label: boolean; channel?: HackActivityType; @@ -72,6 +73,9 @@ function LabelCircle(props: { style={{ background: bg() }} > + + {"image"} + channel open @@ -134,6 +138,7 @@ export function ActivityItem(props: {
0} label={props.labels?.length > 0} channel={props.kind} diff --git a/src/components/ContactViewer.tsx b/src/components/ContactViewer.tsx index fc26d50..f022072 100644 --- a/src/components/ContactViewer.tsx +++ b/src/components/ContactViewer.tsx @@ -45,13 +45,18 @@ export function ContactViewer(props: { onClick={() => setIsOpen(true)} class="flex w-16 flex-shrink-0 flex-col items-center gap-2 overflow-x-hidden" > -
- {props.contact.name[0]} -
- + {props.contact.image_url && ( + + )} + {!props.contact.image_url && ( +
+ {props.contact.name[0]} +
+ )} + {props.contact.name} @@ -86,19 +91,35 @@ export function ContactViewer(props: { /> -
-
-
- {props.contact.name[0]} -
-

+
+
+ {props.contact.image_url && ( + + )} + {!props.contact.image_url && ( +
+ {props.contact.name[0]} +
+ )} +

{props.contact.name}

+

+ {props.contact.npub} +

+

+ {props.contact.ln_address} +

+

+ {props.contact.lnurl} +

{ + e.preventDefault(); + + const npub = value().trim(); + await state.mutiny_wallet?.sync_nostr_contacts(npub); + + setValue(""); + }; + + return ( + + + + + Sync Nostr Contacts + +
+ + + Sync Nostr Contacts + + + + Doesn't look right... + + + +
+
+
+ +
+
+ ); +} diff --git a/src/routes/settings/index.tsx b/src/routes/settings/index.tsx index 7b30cc3..262d04e 100644 --- a/src/routes/settings/index.tsx +++ b/src/routes/settings/index.tsx @@ -120,6 +120,10 @@ export default function Settings() { { href: "/settings/lnurlauth", text: i18n.t("settings.lnurl_auth.title") + }, + { + href: "/settings/syncnostrcontacts", + text: "Sync Nostr Contacts" } ]} />