diff options
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, |
