diff --git a/web/components/answers/answers-panel.tsx b/web/components/answers/answers-panel.tsx index 3d9d066b..ae2c0100 100644 --- a/web/components/answers/answers-panel.tsx +++ b/web/components/answers/answers-panel.tsx @@ -111,7 +111,7 @@ export function AnswersPanel(props: { )} diff --git a/web/components/feed/activity-feed.tsx b/web/components/feed/activity-feed.tsx index c8d14476..9e0b23c4 100644 --- a/web/components/feed/activity-feed.tsx +++ b/web/components/feed/activity-feed.tsx @@ -17,51 +17,24 @@ export function ActivityFeed(props: { getContractPath?: (contract: Contract) => string }) { const { feed, mode, getContractPath } = props - const user = useUser() return ( - ( + + {feed.map((item) => ( - )} - /> - ) -} - -function FeedContainer(props: { - feed: { - contract: Contract - recentBets: Bet[] - recentComments: Comment[] - }[] - renderItem: (item: { - contract: Contract - recentBets: Bet[] - recentComments: Comment[] - }) => any -}) { - const { feed, renderItem } = props - - return ( - - - - {feed.map((item) => ( -
- {renderItem(item)} -
- ))} - - + ))} ) } diff --git a/web/components/feed/feed-items.tsx b/web/components/feed/feed-items.tsx index e2df8f48..0a690d1b 100644 --- a/web/components/feed/feed-items.tsx +++ b/web/components/feed/feed-items.tsx @@ -65,7 +65,7 @@ export function FeedItems(props: { useSaveSeenContract(ref, contract) return ( -
+
{items.map((item, activityItemIdx) => (