Skip to content

Commit 30719d5

Browse files
refactor(mobile): remove redundant platform resolution shims
1 parent 6f5838c commit 30719d5

2 files changed

Lines changed: 38 additions & 39 deletions

File tree

‎apps/mobile/src/features/threads/ThreadSettingsRows.ios.tsx‎

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,38 @@
1-
export { ModelRow, ChoiceRow } from "./ThreadSettingsRows.ios";
1+
import { SymbolView } from "../../components/AppSymbol";
2+
import {
3+
ModelRowContent,
4+
ChoiceRowContent,
5+
type ModelRowProps,
6+
type ChoiceRowProps,
7+
} from "./ThreadSettingsRows.shared";
8+
9+
function SelectedCheckmark(props: { readonly selected: boolean }) {
10+
return props.selected ? (
11+
<SymbolView
12+
name="checkmark"
13+
size={16}
14+
tintColorClassName="accent-icon"
15+
type="monochrome"
16+
weight="semibold"
17+
/>
18+
) : null;
19+
}
20+
21+
export function ModelRow(props: ModelRowProps) {
22+
return (
23+
<ModelRowContent
24+
{...props}
25+
labelNumberOfLines={1}
26+
trailingSelection={<SelectedCheckmark selected={props.selected} />}
27+
/>
28+
);
29+
}
30+
31+
export function ChoiceRow(props: ChoiceRowProps) {
32+
return (
33+
<ChoiceRowContent
34+
{...props}
35+
trailingSelection={<SelectedCheckmark selected={props.selected} />}
36+
/>
37+
);
38+
}

0 commit comments

Comments
 (0)