From 861b04100a05b2f7bf11391359dc2a36cd6bb2e5 Mon Sep 17 00:00:00 2001 From: Ren Amamiya <123083837+reyamir@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:23:31 +0700 Subject: [PATCH] add notification modal --- src/app/chat/components/messages/item.tsx | 25 +-- src/app/chat/components/modal.tsx | 6 +- src/app/trending/components/profile.tsx | 35 ++-- .../trending/components/trendingProfiles.tsx | 2 +- src/shared/accounts/active.tsx | 6 +- src/shared/lumeBar.tsx | 13 +- src/shared/notification.tsx | 58 ------- src/shared/notification/modal.tsx | 153 ++++++++++++++++++ src/shared/notification/user.tsx | 42 +++++ 9 files changed, 235 insertions(+), 105 deletions(-) delete mode 100644 src/shared/notification.tsx create mode 100644 src/shared/notification/modal.tsx create mode 100644 src/shared/notification/user.tsx diff --git a/src/app/chat/components/messages/item.tsx b/src/app/chat/components/messages/item.tsx index e99a4c64..e4eed145 100644 --- a/src/app/chat/components/messages/item.tsx +++ b/src/app/chat/components/messages/item.tsx @@ -35,28 +35,13 @@ export function ChatMessageItem({
{content.parsed}
- {Array.isArray(content.images) && content.images.length ? ( -Loading...
++ {profile.nip05 || shortenKey(data.pubkey)} +
+- {profile.nip05 || shortenKey(data.pubkey)} -
++ {event.content} +
+