From fe4bfa169958f5e24426a042fa47dc3b8f736790 Mon Sep 17 00:00:00 2001
From: Ren Amamiya <123083837+reyamir@users.noreply.github.com>
Date: Sat, 16 Sep 2023 07:47:44 +0700
Subject: [PATCH] wip: learn nostr widget
---
src/app/chats/components/item.tsx | 2 +-
src/app/space/components/widgetList.tsx | 41 ++++++++-------
src/app/space/index.tsx | 5 +-
src/shared/accounts/more.tsx | 2 +-
src/shared/navigation.tsx | 6 +--
src/shared/widgets/index.ts | 1 +
src/shared/widgets/other/learnNostr.tsx | 67 +++++++++++++++++++++++++
src/stores/widgets.ts | 13 +++++
8 files changed, 112 insertions(+), 25 deletions(-)
create mode 100644 src/shared/widgets/other/learnNostr.tsx
diff --git a/src/app/chats/components/item.tsx b/src/app/chats/components/item.tsx
index 90d1f782..6ec9bc91 100644
--- a/src/app/chats/components/item.tsx
+++ b/src/app/chats/components/item.tsx
@@ -27,7 +27,7 @@ export function ChatsListItem({ pubkey }: { pubkey: string }) {
'flex h-10 items-center gap-2.5 rounded-r-lg border-l-2 pl-4 pr-2',
isActive
? 'border-fuchsia-500 bg-white/5 text-white'
- : 'border-transparent text-white/80'
+ : 'border-transparent text-white/70'
)
}
>
diff --git a/src/app/space/components/widgetList.tsx b/src/app/space/components/widgetList.tsx
index 00eec478..ec2c5851 100644
--- a/src/app/space/components/widgetList.tsx
+++ b/src/app/space/components/widgetList.tsx
@@ -8,6 +8,7 @@ import {
FollowsIcon,
GroupFeedsIcon,
HashtagIcon,
+ ThreadsIcon,
TrendingIcon,
} from '@shared/icons';
import { TitleBar } from '@shared/titleBar';
@@ -46,8 +47,10 @@ export function WidgetList({ params }: { params: Widget }) {
case WidgetKinds.nostrBand.trendingAccounts:
case WidgetKinds.nostrBand.trendingNotes:
return
Unread
+Unread
+Unread
+Unread
+