diff --git a/app/(home-pages)/reader/FeedLayout.tsx b/app/(home-pages)/reader/FeedLayout.tsx new file mode 100644 index 00000000..53361ad0 --- /dev/null +++ b/app/(home-pages)/reader/FeedLayout.tsx @@ -0,0 +1,7 @@ +export const FeedLayout = (props: { children: React.ReactNode }) => { + return ( +
+ {props.children} +
+ ); +}; diff --git a/app/(home-pages)/reader/GlobalContent.tsx b/app/(home-pages)/reader/GlobalContent.tsx index 31ae8004..e081d0c4 100644 --- a/app/(home-pages)/reader/GlobalContent.tsx +++ b/app/(home-pages)/reader/GlobalContent.tsx @@ -5,10 +5,6 @@ import { callRPC } from "app/api/rpc/client"; import { EmptyState } from "components/EmptyState"; import { PostListing } from "components/PostListing"; import type { Post } from "./getReaderFeed"; -import { - DesktopInteractionPreviewDrawer, - MobileInteractionPreviewDrawer, -} from "./InteractionDrawers"; import { useSelectedPostListing } from "src/useSelectedPostState"; export const GlobalContent = (props: { @@ -38,18 +34,14 @@ export const GlobalContent = (props: { } return ( -
-
- {posts.map((p) => ( - - ))} -
- - -
+ <> + {posts.map((p) => ( + + ))} + ); }; diff --git a/app/(home-pages)/reader/InboxContent.tsx b/app/(home-pages)/reader/InboxContent.tsx index 036a821a..6b1cfb2a 100644 --- a/app/(home-pages)/reader/InboxContent.tsx +++ b/app/(home-pages)/reader/InboxContent.tsx @@ -8,13 +8,10 @@ import { getReaderFeed } from "./getReaderFeed"; import { useEffect, useRef } from "react"; import Link from "next/link"; import { PostListing } from "components/PostListing"; -import { - DesktopInteractionPreviewDrawer, - MobileInteractionPreviewDrawer, -} from "./InteractionDrawers"; import { useSelectedPostListing } from "src/useSelectedPostState"; import { useIdentityData } from "components/IdentityProvider"; import { LoginContent } from "components/LoginButton"; +import { EmptyState } from "components/EmptyState"; export const InboxContent = (props: { promise: Promise<{ posts: Post[]; nextCursor: Cursor | null }>; @@ -82,55 +79,47 @@ export const InboxContent = (props: { if (!identityData) { return ( -
-
-

Log in or sign up to see your subscriptions!

- -
-
+ + + ); } if (allPosts.length === 0) return ; return ( -
-
- {sortedPosts.map((p) => ( - - ))} - {/* Trigger element for loading more posts */} - - - -
+ ))} + {/* Trigger element for loading more posts */} +