diff options
| author | polwex <polwex@sortug.com> | 2025-11-12 07:11:07 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-11-12 07:11:07 +0700 |
| commit | 284ce9ce7d9f81e54e91f917329d48926487fbf4 (patch) | |
| tree | 7a156986323fd799e1457c8b7663806e32b2af7d /gui/src/pages/Feed.tsx | |
| parent | 7305d67ff7f9e78b73326ef0e1f68a9613d34205 (diff) | |
fixes to engagement handling
Diffstat (limited to 'gui/src/pages/Feed.tsx')
| -rw-r--r-- | gui/src/pages/Feed.tsx | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gui/src/pages/Feed.tsx b/gui/src/pages/Feed.tsx index 66acc66..ac596dd 100644 --- a/gui/src/pages/Feed.tsx +++ b/gui/src/pages/Feed.tsx @@ -57,7 +57,7 @@ function FeedPage({ t }: { t: FeedType }) { {active === "global" ? ( <Global /> ) : active === "following" ? ( - <Global /> + <Following /> ) : active === "nostr" ? ( <Nostr /> ) : null} @@ -87,6 +87,21 @@ function Global() { // else return <Inner data={data} refetch={refetch} />; return <p>Error</p>; } +function Following() { + const following = useLocalState((s) => s.following2); + console.log({ following }); + + // console.log(data, "scry feed data"); + // if (isPending) return <img className="x-center" src={spinner} />; + // else if ("bucun" in data) return <p>Error</p>; + // else return <Inner data={data} refetch={refetch} />; + + return ( + <div> + <PostList data={following} refetch={() => {}} /> + </div> + ); +} function Nostr() { const { nostrFeed, api } = useLocalState((s) => ({ nostrFeed: s.nostrFeed, |
