fix(mobile): search loading indicator

This commit is contained in:
DIYgod
2025-04-23 15:59:44 +08:00
parent 0b2393a11b
commit adaa52f85d
@@ -1,6 +1,6 @@
import { withOpacity } from "@follow/utils"
import { useMemo } from "react"
import { Text, View } from "react-native"
import { Text } from "react-native"
import { PlatformActivityIndicator } from "@/src/components/ui/loading/PlatformActivityIndicator"
import { SadCuteReIcon } from "@/src/icons/sad_cute_re"
@@ -13,9 +13,7 @@ export const useDataSkeleton = (isLoading: boolean, data: any) => {
return useMemo(() => {
if (isLoading) {
return (
<BaseSearchPageRootView className="items-center justify-center">
<View className="-mt-72" />
<BaseSearchPageRootView className="h-64 w-full items-center justify-center">
<PlatformActivityIndicator />
</BaseSearchPageRootView>
)
@@ -23,8 +21,7 @@ export const useDataSkeleton = (isLoading: boolean, data: any) => {
if (data?.data.length === 0) {
return (
<BaseSearchPageRootView className="items-center justify-center">
<View className="-mt-72" />
<BaseSearchPageRootView className="h-64 items-center justify-center">
<SadCuteReIcon height={32} width={32} color={withOpacity(textColor, 0.5)} />
<Text className="text-text/50 mt-2">No results found</Text>
</BaseSearchPageRootView>