diff --git a/src/view/screens/DebugMod.tsx b/src/view/screens/DebugMod.tsx index a0ff44ec28..f548b1fbe7 100644 --- a/src/view/screens/DebugMod.tsx +++ b/src/view/screens/DebugMod.tsx @@ -58,7 +58,7 @@ export const DebugModScreen = ({}: NativeStackScreenProps< const [scenarioSwitches, setScenarioSwitches] = React.useState([]) const [label, setLabel] = React.useState([LABEL_VALUES[0]]) const [target, setTarget] = React.useState(['account']) - const [visibility, setVisiblity] = React.useState(['hide']) + const [visibility, setVisiblity] = React.useState(['warn']) const [customLabelDef, setCustomLabelDef] = React.useState({ identifier: 'custom', @@ -340,34 +340,74 @@ export const DebugModScreen = ({}: NativeStackScreenProps< )} - - - - - Target is me - - - - Following target - - - - Self label - - - - Adult disabled - - - - Logged out - - - + + + + + + + + Target is me + + + + Following target + + + + Self label + + + + Adult disabled + + + + Logged out + + + + + {LABELS[label[0] as keyof typeof LABELS]?.configurable !== + false && ( + + + Preference + + + + + + Hide + + + + Warn + + + + Ignore + + + + + )} + @@ -417,57 +457,6 @@ export const DebugModScreen = ({}: NativeStackScreenProps< - {LABELS[label[0] as keyof typeof LABELS]?.configurable !== - false && ( - - - Preference - - - - - - - Hide - - - - Warn - - - - Ignore - - - - - - )} )} @@ -710,6 +699,33 @@ function Toggler({label, children}: React.PropsWithChildren<{label: string}>) { ) } +function SmallToggler({ + label, + children, +}: React.PropsWithChildren<{label: string}>) { + const t = useTheme() + const [show, setShow] = React.useState(false) + return ( + + + + + {show && children} + + ) +} + function DataView({label, data}: {label: string; data: any}) { return (