fix(mobile): trending item press area
This commit is contained in:
@@ -28,7 +28,7 @@ export function DiscoverContent() {
|
||||
</ItemPressable> */}
|
||||
</View>
|
||||
|
||||
<Trending className="mt-4 px-6" />
|
||||
<Trending className="mt-4" itemClassName="px-6" />
|
||||
|
||||
<View className="mt-4 flex-row items-center justify-between pb-1 pl-6 pr-5 pt-4">
|
||||
<View className="flex-row items-center gap-2">
|
||||
|
||||
@@ -8,7 +8,13 @@ import { PlatformActivityIndicator } from "@/src/components/ui/loading/PlatformA
|
||||
import { fetchFeedTrending } from "./api"
|
||||
import { FeedSummary } from "./FeedSummary"
|
||||
|
||||
export const Trending = ({ className }: { className?: string }) => {
|
||||
export const Trending = ({
|
||||
className,
|
||||
itemClassName,
|
||||
}: {
|
||||
className?: string
|
||||
itemClassName?: string
|
||||
}) => {
|
||||
const { i18n } = useTranslation()
|
||||
const { data, isLoading } = useQuery({
|
||||
queryKey: ["trending", "feeds"],
|
||||
@@ -30,7 +36,7 @@ export const Trending = ({ className }: { className?: string }) => {
|
||||
<FeedSummary
|
||||
key={item.feed?.id}
|
||||
item={item}
|
||||
className="flex flex-1 flex-row items-center bg-none py-3"
|
||||
className={cn("flex flex-1 flex-row items-center bg-none py-3", itemClassName)}
|
||||
simple
|
||||
preChildren={
|
||||
<View
|
||||
|
||||
Reference in New Issue
Block a user