Skip to content

Commit 86731fe

Browse files
juliusmarmingecodex
andcommitted
Clean mobile split integration warnings
Co-authored-by: codex <[email protected]>
1 parent 6f5d306 commit 86731fe

3 files changed

Lines changed: 3 additions & 36 deletions

File tree

‎apps/mobile/src/features/threads/ThreadFeed.tsx‎

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
type PartialMarkdownTheme,
1313
} from "react-native-nitro-markdown";
1414
import {
15-
ActivityIndicator,
1615
Image,
1716
Linking,
1817
type NativeScrollEvent,
@@ -1218,39 +1217,6 @@ function compactFileName(filePath: string): string {
12181217
return lastSlashIndex >= 0 ? normalized.slice(lastSlashIndex + 1) : normalized;
12191218
}
12201219

1221-
const IOS_NAV_BAR_HEIGHT = 44;
1222-
1223-
function ThreadFeedPlaceholder(props: {
1224-
readonly bottomInset: number;
1225-
readonly detail: string;
1226-
readonly horizontalPadding: number;
1227-
readonly loading?: boolean;
1228-
readonly title: string;
1229-
readonly topInset: number;
1230-
}) {
1231-
return (
1232-
<View
1233-
style={{
1234-
flex: 1,
1235-
flexGrow: 1,
1236-
alignItems: "center",
1237-
justifyContent: "center",
1238-
paddingTop: props.topInset,
1239-
paddingBottom: props.bottomInset,
1240-
paddingHorizontal: props.horizontalPadding + 24,
1241-
}}
1242-
>
1243-
<View className="max-w-[320px] items-center gap-2">
1244-
{props.loading ? <ActivityIndicator style={{ marginBottom: 6 }} /> : null}
1245-
<Text className="text-center font-t3-bold text-lg text-foreground">{props.title}</Text>
1246-
<Text className="text-center text-sm leading-5 text-foreground-secondary">
1247-
{props.detail}
1248-
</Text>
1249-
</View>
1250-
</View>
1251-
);
1252-
}
1253-
12541220
export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
12551221
const listRef = useRef<LegendListRef>(null);
12561222
const copyFeedbackTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);

‎apps/mobile/src/features/threads/ThreadRouteScreen.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as Option from "effect/Option";
55
import { pipe } from "effect/Function";
66
import { EnvironmentId, type ProjectScript } from "@t3tools/contracts";
77
import { projectScriptCwd, projectScriptRuntimeEnv } from "@t3tools/shared/projectScripts";
8-
import { Pressable, ScrollView, Text as RNText, View, useColorScheme } from "react-native";
8+
import { Pressable, ScrollView, Text as RNText, View } from "react-native";
99
import { useThemeColor } from "../../lib/useThemeColor";
1010
import { useVcsStatus } from "../../state/use-vcs-status";
1111
import { dismissGitActionResult, useGitActionProgress } from "../../state/use-vcs-action-state";

‎apps/mobile/src/native/T3ComposerEditor.ios.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { useThemeColor } from "../lib/useThemeColor";
1010
import type { ComposerEditorProps, ComposerEditorSelection } from "./T3ComposerEditor.types";
1111

1212
const NATIVE_MODULE_NAME = "T3ComposerEditor";
13+
const EMPTY_SKILLS: NonNullable<ComposerEditorProps["skills"]> = [];
1314

1415
type NativeEditorEvent = NativeSyntheticEvent<{
1516
readonly value: string;
@@ -66,7 +67,7 @@ function fileIconUri(path: string): string {
6667

6768
export function ComposerEditor({
6869
ref,
69-
skills = [],
70+
skills = EMPTY_SKILLS,
7071
selection,
7172
style,
7273
textStyle,

0 commit comments

Comments
 (0)