fix(android): Use MD3 loading spinners (#14282)
This commit is contained in:
32 files changed
+159
-113
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { ActivityIndicator, View } from "react-native";
|
||||
import { View } from "react-native";
|
||||
|
||||
import { AppActivityIndicator } from "../../components/AppActivityIndicator";
|
||||
import { AppText as Text } from "../../components/AppText";
|
||||
import { cn } from "../../lib/cn";
|
||||
|
||||
@@ -14,7 +15,7 @@ export function FilePreviewLoading(props: {
|
||||
props.background === "card" ? "bg-card" : "bg-sheet",
|
||||
)}
|
||||
>
|
||||
<ActivityIndicator />
|
||||
<AppActivityIndicator />
|
||||
<Text className="text-center text-sm text-foreground-muted">{props.message}</Text>
|
||||
</View>
|
||||
);
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { LegendList } from "@legendapp/list/react-native";
|
||||
import type { ProjectEntry } from "@t3tools/contracts";
|
||||
import { AppActivityIndicator } from "../../components/AppActivityIndicator";
|
||||
import { SymbolView } from "../../components/AppSymbol";
|
||||
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||
import { ActivityIndicator, Platform, Pressable, RefreshControl, View } from "react-native";
|
||||
import { Platform, Pressable, RefreshControl, View } from "react-native";
|
||||
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
||||
|
||||
import { AppText as Text } from "../../components/AppText";
|
||||
@@ -96,7 +97,7 @@ const FileTreeRow = memo(function FileTreeRow(props: {
|
||||
{node.name}
|
||||
</Text>
|
||||
{node.kind === "directory" && props.expanded && props.loading ? (
|
||||
<ActivityIndicator size="small" accessibilityLabel={`Loading ${node.name}`} />
|
||||
<AppActivityIndicator size="small" accessibilityLabel={`Loading ${node.name}`} />
|
||||
) : null}
|
||||
</Pressable>
|
||||
);
|
||||
@@ -296,7 +297,7 @@ export function FileTreeBrowser(props: {
|
||||
</Pressable>
|
||||
</>
|
||||
) : props.isPending ? (
|
||||
<ActivityIndicator size="small" />
|
||||
<AppActivityIndicator size="small" />
|
||||
) : (
|
||||
<>
|
||||
<Text className="text-sm font-t3-bold text-foreground">No files found</Text>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { useState } from "react";
|
||||
import { ActivityIndicator, View } from "react-native";
|
||||
import { View } from "react-native";
|
||||
import { WebView } from "react-native-webview";
|
||||
|
||||
import { AppActivityIndicator } from "../../components/AppActivityIndicator";
|
||||
import { AppText as Text } from "../../components/AppText";
|
||||
import { FilePreviewLoading } from "./FilePreviewFeedback";
|
||||
import { LoadingStrip } from "../../components/LoadingStrip";
|
||||
@@ -46,7 +47,7 @@ export function WorkspaceFileWebPreview(props: { readonly uri: string | null })
|
||||
}}
|
||||
renderLoading={() => (
|
||||
<View className="absolute inset-0 items-center justify-center bg-card">
|
||||
<ActivityIndicator />
|
||||
<AppActivityIndicator />
|
||||
</View>
|
||||
)}
|
||||
style={{ flex: 1, backgroundColor: "transparent" }}
|
||||
|
||||
Reference in new issue
Block a user