From 04b5d02afab0f17ae32b1bd039fea213778fbdd6 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 15 May 2025 18:48:07 +0800 Subject: [PATCH] feat(mobile): trending index --- apps/mobile/src/modules/discover/Trending.tsx | 26 +++++++++++++++++-- .../src/modules/discover/TrendingFeedCard.tsx | 2 +- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/apps/mobile/src/modules/discover/Trending.tsx b/apps/mobile/src/modules/discover/Trending.tsx index 4405e5ba7..d6adf84ad 100644 --- a/apps/mobile/src/modules/discover/Trending.tsx +++ b/apps/mobile/src/modules/discover/Trending.tsx @@ -1,5 +1,6 @@ +import { cn } from "@follow/utils" import { useQuery } from "@tanstack/react-query" -import { View } from "react-native" +import { Text, View } from "react-native" import { PlatformActivityIndicator } from "@/src/components/ui/loading/PlatformActivityIndicator" @@ -22,7 +23,28 @@ export const Trending = () => { ) : ( - data?.map((item) => ) + data?.map((item, index) => ( + + + + + {index + 1} + + + + )) )} ) diff --git a/apps/mobile/src/modules/discover/TrendingFeedCard.tsx b/apps/mobile/src/modules/discover/TrendingFeedCard.tsx index 883f377f4..000f45680 100644 --- a/apps/mobile/src/modules/discover/TrendingFeedCard.tsx +++ b/apps/mobile/src/modules/discover/TrendingFeedCard.tsx @@ -14,7 +14,7 @@ export const TrendingFeedCard = ({ item }: { item: SearchResultItem }) => { const iconColor = useColor("text") return ( - +