Skip to content

Commit

Permalink
fix: tableradiorow
Browse files Browse the repository at this point in the history
  • Loading branch information
byeoon committed Oct 24, 2024
1 parent be3843d commit b629326
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/ui/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const Forms = findByProps("Form", "FormSection");

export const General = findByProps("Button", "Text", "View");
// Ohh its called Tabs because TabsV2!!!!!!! ahaha
export const TableRadio = findSingular("FormRadio");
export const TableRowTrailingText = findByProps("TableRowTrailingText");
export const Tabs = {
...findByProps("TableRow", "TableRowGroup"),
Expand Down
11 changes: 8 additions & 3 deletions src/ui/settings/pages/DesignTesting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { getDebugInfo, toggleSafeMode } from "@lib/debug";
import { useProxy } from "@lib/storage";
import { BundleUpdaterManager } from "@lib/native";
import { getAssetIDByName } from "@ui/assets";
import { Forms, Summary, ErrorBoundary, Tabs, TableRadio } from "@ui/components";
import { Forms, Summary, ErrorBoundary, Tabs } from "@ui/components";
import settings from "@lib/settings";
import Version from "@ui/settings/components/Version";
import { showToast } from "@/ui/toasts";

const { FormRow, FormSwitchRow, FormSection, FormDivider } = Forms;
const { Stack, TableRow, TableRowIcon, TableSwitchRow, TableRowGroup, TableInput }= Tabs;
const { Stack, TableRow, TableRowIcon, TableSwitchRow, TableRowGroup, TableRadioRow }= Tabs;
const debugInfo = getDebugInfo();
// Something I realized while working on this, shit doesn't uncache. It doesn't update whenever I do stuff.
export default function DesignTesting() {
Expand All @@ -34,11 +34,16 @@ export default function DesignTesting() {
settings.developerSettings = v;
}}
/>
<TableRadio
<TableRadioRow
label="TableRadio"
leading={<TableRowIcon source={getAssetIDByName("ic_progress_wrench_24px")} />}
value={settings.developerSettings}
/>
<TableRadioRow
label="Second Radio Row"
leading={<TableRowIcon source={getAssetIDByName("ic_progress_wrench_24px")} />}
value={settings.developerSettings}
/>
</TableRowGroup>
</Stack>
</RN.ScrollView>
Expand Down

0 comments on commit b629326

Please sign in to comment.