diff --git a/apps/kampus/app/pano/PanoFeed.tsx b/apps/kampus/app/pano/PanoFeed.tsx index d634a014..fb8faf60 100644 --- a/apps/kampus/app/pano/PanoFeed.tsx +++ b/apps/kampus/app/pano/PanoFeed.tsx @@ -3,7 +3,6 @@ import Link from "next/link"; import { graphql, useFragment, usePaginationFragment } from "react-relay"; import { Button } from "@kampus/ui"; -import { Session } from "@kampus/next-auth"; import { PostItem } from "~/app/pano/features/post-list/PostItem"; import { type PanoFeed_viewer$key } from "./__generated__/PanoFeed_viewer.graphql"; @@ -43,7 +42,6 @@ const viewerFragment = graphql` `; interface Props { - session: Session | null; panoFeed: PanoFeedFragment$key; panoViewer: PanoFeed_viewer$key; } @@ -61,19 +59,17 @@ export function PanoFeed(props: Props) { return ( <> - {props.session && ( - - )} +
{feed?.edges?.map((edge) => { diff --git a/apps/kampus/app/pano/PostListContainer.tsx b/apps/kampus/app/pano/PostListContainer.tsx index 85b22b86..c10b62e9 100644 --- a/apps/kampus/app/pano/PostListContainer.tsx +++ b/apps/kampus/app/pano/PostListContainer.tsx @@ -2,7 +2,6 @@ import { graphql, usePreloadedQuery } from "react-relay"; -import { Session } from "@kampus/next-auth"; import { type SerializablePreloadedQuery } from "@kampus/relay"; import useSerializablePreloadedQuery from "@kampus/relay/use-serializable-preloaded-query"; @@ -10,7 +9,6 @@ import { type PostListContainerQuery } from "./__generated__/PostListContainerQu import { PanoFeed } from "./PanoFeed"; interface Props { - session: Session | null; preloadedQuery: SerializablePreloadedQuery; } @@ -31,5 +29,5 @@ export const PostListContainer = (props: Props) => { return null; } - return ; + return ; }; diff --git a/apps/kampus/app/pano/page.tsx b/apps/kampus/app/pano/page.tsx index badd056c..51378b2d 100644 --- a/apps/kampus/app/pano/page.tsx +++ b/apps/kampus/app/pano/page.tsx @@ -1,4 +1,3 @@ -import { getServerSession } from "@kampus/next-auth"; import loadSerializableQuery from "@kampus/relay/load-serializable-query"; import { PostSortFilters } from "~/app/pano/features/post-filter/PostSortFilters"; @@ -20,7 +19,6 @@ const normalizeFilter = (query?: string): PanoPostFilterType | null => { }; export default async function PostsPage({ searchParams }: { searchParams: { filter?: string } }) { - const session = await getServerSession(); const normalized = normalizeFilter(searchParams.filter); const preloadedQuery = await loadSerializableQuery(query, { @@ -30,7 +28,7 @@ export default async function PostsPage({ searchParams }: { searchParams: { filt return (
- +
); }