@devries-cameron20 / t3code-1 / commits / 80ff047008
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

refactor(mobile): use shared open source license rows (#21917)

Julius Marminge committed Oct 19, 2026 at 15:04 UTC 80ff0470082873b69ba3c3a8900b28fddd08d95f
1 file changed +8 -26
apps/mobile/src/features/settings/SettingsOpenSourceLicensesRouteScreen.tsx
+8 -26
@@ -15,6 +15,7 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
15
16 import { SymbolView } from "../../components/ui/AppSymbol";
17 import { AppText as Text, AppTextInput as TextInput } from "../../components/ui/AppText";
18 +import { ListRow } from "../../components/ui/ListRow";
19 import { SettingsScreen } from "./components/SettingsScreen";
20 import { NativeStackScreenOptions } from "../../native/StackHeader";
21 import {
@@ -40,32 +41,13 @@ function LicenseRow(props: {
41 readonly onPress: () => void;
42 }) {
43 return (
43 - <Pressable
44 - accessibilityHint="Opens the complete license notice"
45 - accessibilityLabel={`${props.entry.name}, ${props.entry.license}`}
46 - accessibilityRole="button"
47 - onPress={props.onPress}
48 - className="border-b border-border bg-grouped-card px-5 py-4 active:bg-card-alt"
49 - >
50 - <View className="flex-row items-start gap-3">
51 - <View className="min-w-0 flex-1 gap-1">
52 - <Text className="text-base font-t3-medium text-foreground" numberOfLines={2}>
53 - {props.entry.name}
54 - </Text>
55 - <Text className="text-sm text-foreground-muted" numberOfLines={2}>
56 - {props.entry.version ? `${props.entry.version} · ` : ""}
57 - {props.entry.license}
58 - </Text>
59 - </View>
60 - <SymbolView
61 - name="chevron.right"
62 - size={16}
63 - tintColorClassName={"accent-chevron"}
64 - type="monochrome"
65 - weight="semibold"
66 - />
67 - </View>
68 - </Pressable>
44 + <View className="border-b border-border">
45 + <ListRow
46 + label={props.entry.name}
47 + description={[props.entry.version, props.entry.license].filter(Boolean).join(" · ")}
48 + onPress={props.onPress}
49 + />
50 + </View>
51 );
52 }
53