diff --git a/src/core/ui/settings/pages/Themes/index.tsx b/src/core/ui/settings/pages/Themes/index.tsx
index e7e38da..95e7092 100644
--- a/src/core/ui/settings/pages/Themes/index.tsx
+++ b/src/core/ui/settings/pages/Themes/index.tsx
@@ -19,7 +19,7 @@ import {
BottomSheetTitleHeader,
Button,
TableRowGroup,
- TableSwitchRow,
+ TableCheckboxRow,
TableRowIcon,
} from "@metro/common/components";
import { View } from "react-native";
@@ -74,14 +74,12 @@ export default function Themes() {
{/* Changed from TableRadioGroup to individual TableSwitchRow components
for better UX - users can now toggle options individually */}
- }
- value={!colorsPref.type}
- onValueChange={(enabled: boolean) => {
- if (enabled) {
- colorsPref.type = undefined;
- } else {
+ checked={!colorsPref.type}
+ onPress={() => {
+ if (!colorsPref.type) {
colorsPref.type = "dark";
}
getCurrentTheme()?.data &&
@@ -90,24 +88,24 @@ export default function Themes() {
});
}}
/>
- }
- value={colorsPref.type === "dark"}
- onValueChange={(enabled: boolean) => {
- colorsPref.type = enabled ? "dark" : undefined;
+ checked={colorsPref.type === "dark"}
+ onPress={() => {
+ colorsPref.type = colorsPref.type === "dark" ? undefined : "dark";
getCurrentTheme()?.data &&
updateBunnyColor(getCurrentTheme()!.data!, {
update: true,
});
}}
/>
- }
- value={colorsPref.type === "light"}
- onValueChange={(enabled: boolean) => {
- colorsPref.type = enabled ? "light" : undefined;
+ checked={colorsPref.type === "light"}
+ onPress={() => {
+ colorsPref.type = colorsPref.type === "light" ? undefined : "light";
getCurrentTheme()?.data &&
updateBunnyColor(getCurrentTheme()!.data!, {
update: true,
@@ -116,20 +114,13 @@ export default function Themes() {
/>
- }
- value={!colorsPref.customBackground}
- onValueChange={(enabled: boolean) => {
- colorsPref.customBackground = enabled ? null : "hidden";
- }}
- />
- }
- value={colorsPref.customBackground === "hidden"}
- onValueChange={(enabled: boolean) => {
- colorsPref.customBackground = enabled ? "hidden" : null;
+ checked={!colorsPref.customBackground}
+ onPress={() => {
+ colorsPref.customBackground = !colorsPref.customBackground ? "hidden" : null;
}}
/>